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

HDDS-10487. Intermittent crash in TestSnapshotDiffManager #6346

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Fix intermittent crash in TestSnapshotDiffManager:

  • Avoid recreating SnapshotDiffManager without closing the previous instance. Actually the new one seems to be unnecessary, as original one is created @BeforeEach.
  • Close SnapshotDiffManager before closing RocksDB objects.

https://issues.apache.org/jira/browse/HDDS-10487

How was this patch tested?

No crash in 500 runs (but had 5 failures due to NPE, reported in HDDS-10490):
https://github.com/adoroszlai/ozone/actions/runs/8191095498

Regular CI:
https://github.com/adoroszlai/ozone/actions/runs/8191527914

@adoroszlai adoroszlai added the test label Mar 7, 2024
@adoroszlai adoroszlai self-assigned this Mar 7, 2024
Copy link
Contributor

@hemantk-12 hemantk-12 left a comment

Choose a reason for hiding this comment

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

Thanks, @adoroszlai for the patch.

LGTM.

@adoroszlai adoroszlai merged commit 9dab4d2 into apache:master Mar 7, 2024
20 checks passed
@adoroszlai adoroszlai deleted the HDDS-10487 branch March 7, 2024 20:07
@adoroszlai
Copy link
Contributor Author

Thanks @hemantk-12 for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants