Skip to content

[BUG] OnDemandBlockSnapshotIndexInputTests fail on Windows. #5396

@mch2

Description

@mch2

Describe the bug
OnDemandBlockSnapshotIndexInputTests.testVariousBlockSize fails on windows. See https://build.ci.opensearch.org/job/gradle-check/7153/testReport/junit/org.opensearch.index.store.remote.file/OnDemandBlockSnapshotIndexInputTests/testVariousBlockSize/

Expected behavior
Test should pass.

Plugins
None

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
The test is failing to delete files in its cleanDirectory method because it uses an MMapDirectory. Attempts to delete the files throw an AccessDeniedException unless the IndexInput is closed & a round of gc runs.
See https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java#LL46C4-L46C4

Metadata

Metadata

Assignees

No one assigned

    Labels

    :testAdding or fixing a testCICI relatedbugSomething isn't workinglucenewindows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions