Skip to content

[test] AzureFileSystemPluginTest spends ~10 min retrying DNS lookups #4637

Closed

Description

@polyzos

Search before asking

  • I searched in the issues and found nothing similar.

Description

testCreateWithAccountKey and testCreateWithoutAccountKey call plugin.create() on abfs://container@account.dfs.core.windows.net/. That host does not exist (NXDOMAIN). The ABFS client then retries with exponential backoff (30 attempts, up to 25 s apart), which takes ~632 s on CI and sits on the core critical path. account is also a real, registrable storage-account name.

Fix:set fs.azure.io.retry.max.retries=0, or use a .invalid host. This should decrease the test time signnifically.

Willingness to contribute

  • I'm willing to submit a PR!

Activity

  1. added theissue type on Oct 14, 2026
  2. dstolis commented on Oct 14, 2026

    @dstolis
    Contributor

    @polyzos can i take this one?

  3. polyzos commented on Oct 14, 2026

    @polyzos
    ContributorAuthor

    @dstolis assigned to you

  4. dstolis commented on Oct 14, 2026

    @dstolis
    Contributor

    @polyzos I reproduced this locally (macOS, JDK 17, hadoop-azure 3.4.3).

    AzureFileSystemPluginTest before and after the fix:

    Before After
    testCreateWithoutAccountKey 636.945 s 0.268 s
    testCreateWithAccountKey 0.029 s 0.006 s
    AzureFileSystemPluginTest total 637.0 s 0.372 s
    Maven wall clock 642 s 5 s

    Observations:

    • All of the time is spent in testCreateWithoutAccountKey. testCreateWithAccountKey is fast only
      because "some-key" is not valid base64, so ABFS rejects it during initialize() before making any
      network call. The exception is swallowed, so create() is never really exercised.
    • Both tests swallow exceptions, so neither can fail.
    • AbfsFileSystemBehaviorITCase and AbfsFileSystemDelegationTokenITCase use a similar fake host and
      stay fast because they set fs.azure.account.hns.enabled=false.

    Fix: #4640

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions