Skip to content

[R] Several nightly R jobs are failing registering factory for filesystem #46269

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

Several nightly jobs for R are failing:

They all seem to fail registering filesystems:

 ══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-s3-minio.R:64:1'): open_dataset errors if passed URIs mixing s3 and local fs ──
Error: Key error: Attempted to register factory for scheme 'file' but that scheme is already registered.
Backtrace:
     ▆
  1. ├─testthat::expect_error(...) at tests/testthat/helper-filesystems.R:110:7
  2. │ └─testthat:::expect_condition_matching(...)
  3. │   └─testthat:::quasi_capture(...)
  4. │     ├─testthat (local) .capture(...)
  5. │     │ └─base::withCallingHandlers(...)
  6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  7. └─arrow::open_dataset(...)
  8.   └─DatasetFactory$create(...)
  9.     └─arrow:::get_paths_and_filesystem(x, filesystem)
 10.       └─base::lapply(x, FileSystem$from_uri)
 11.         └─arrow (local) FUN(X[[i]], ...)
 12.           └─arrow:::fs___FileSystemFromUri(uri)
── Error ('test-s3-minio.R:64:1'): copy files with s3 ──────────────────────────
Error: Key error: Attempted to register factory for scheme 'file' but that scheme is already registered.
Backtrace:
    ▆
 1. └─arrow::copy_files(uri_formatter("hive_dir"), td) at tests/testthat/helper-filesystems.R:173:7
 2.   └─arrow:::get_path_and_filesystem(to)
 3.     └─arrow:::get_paths_and_filesystem(x, filesystem)
 4.       ├─filesystem %||% LocalFileSystem$create()
 5.       └─LocalFileSystem$create()
 6.         └─FileSystem$from_uri("file:///_")
 7.           └─arrow:::fs___FileSystemFromUri(uri)
── Error ('test-udf.R:232:3'): user-defined functions work during multi-threaded execution ──
Error: Key error: Attempted to register factory for scheme 'file' but that scheme is already registered.
Backtrace:
    ▆
 1. └─arrow::write_dataset(example_df, tf_dataset, partitioning = "part") at test-udf.R:232:3
 2.   └─arrow:::get_path_and_filesystem(path)
 3.     └─arrow:::get_paths_and_filesystem(x, filesystem)
 4.       ├─filesystem %||% LocalFileSystem$create()
 5.       └─LocalFileSystem$create()
 6.         └─FileSystem$from_uri("file:///_")
 7.           └─arrow:::fs___FileSystemFromUri(uri)

[ FAIL 3 | WARN 0 | SKIP 28 | PASS 8307 ]
Error: Test failures

Component(s)

R

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions