Skip to content

[Bug] PluginFileIO, ResolvingFileIO and CachingFileIO do not forward listFilesIterative #9862

Description

@thswlsqls

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version
master @ bbae07d

Compute Engine
Engine-agnostic. Any catalog reading an object table on S3/OSS/OBS through the plugin loader jars (PluginFileIO), through the REST catalog (ResolvingFileIO), or with local-cache.enabled (CachingFileIO).

Minimal reproduce step

  1. Create an object table on s3://bucket/prefix whose prefix has D sub-prefixes.
  2. Refresh it. ObjectTableImpl calls fileIO.listFilesIterative(location, true).

HadoopCompliantFileIO.listFilesIterative (paimon-s3-impl, oss-impl, obs-impl, jindo) overrides the method with one flat paginated listing. PluginFileIO, ResolvingFileIO and CachingFileIO do not forward it, so the FileIO interface default runs on the wrapper: D+1 listStatus calls, one per directory, each materialized in memory.

What doesn't meet your expectations?
The wrappers should forward listFilesIterative to the inner FileIO, as RESTTokenFileIO does since #9071 and as all four wrappers do for tryToWriteAtomic since #9034. Expected one flat listing per refresh.

Anything else?
The plugin path also sits beneath RESTTokenFileIO, so #9071's forward lands on a PluginFileIO that still runs the default.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions