Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close all byte streams in RemoteSegmentMetadataHandlerTests #17348

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

linuxpi
Copy link
Collaborator

@linuxpi linuxpi commented Feb 13, 2025

Description

Attempting to fix RemoteSegmentMetadataHandlerTests flaky test by closing all open byte streams

Related Issues

Resolves #14367

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions github-actions bot added >test-failure Test failure from CI, local build, etc. autocut flaky-test Random test failure that succeeds on second run Storage:Remote labels Feb 13, 2025
Copy link
Contributor

❌ Gradle check result for 309fc6c: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

assertEquals(replicationCheckpoint.getPrimaryTerm(), metadata.getPrimaryTerm());
assertArrayEquals(segmentInfosBytes, metadata.getSegmentInfosBytes());
}
output.close();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to finally block?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut flaky-test Random test failure that succeeds on second run skip-changelog Storage:Remote >test-failure Test failure from CI, local build, etc.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Gradle Check Flaky Test Report for RemoteSegmentMetadataHandlerTests
2 participants