Skip to content

[ISSUE #11568] Close RocksDB before deleting the topic transfer test store - #11569

Open
Hilarious12138 wants to merge 1 commit into
apache:developfrom
Hilarious12138:fix/rocksdb-topic-transfer-test-cleanup
Open

Hilarious12138 wants to merge 1 commit into
apache:developfrom
Hilarious12138:fix/rocksdb-topic-transfer-test-cleanup

Conversation

@Hilarious12138

Copy link
Copy Markdown

Which Issue(s) This PR Fixes

Fixes #11568

Brief Description

Close the RocksDB topic configuration manager in @After while its store still exists. JUnit then removes the per-test TemporaryFolder and reports a cleanup failure if the directory remains. The migration test also checks the reopened topic configuration against the JSON source. Its previous assertion compared the RocksDB table size with itself.

How Did You Test This Change?

Ran RocksdbTopicConfigTransferTest on Linux ARM64 with Corretto 8. The original teardown logged missing files during RocksDB shutdown. With this change, all seven tests passed in each of four runs, with zero skips, no missing-file errors during shutdown, and no leftover test directories.

mvn -pl broker -am -Dtest=RocksdbTopicConfigTransferTest -Dsurefire.failIfNoSpecifiedTests=false test

Let JUnit remove the per-test store after the manager has stopped. Compare the reopened topic configuration with the JSON source to verify the migration survives a restart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] RocksdbTopicConfigTransferTest can delete its store before RocksDB shuts down

1 participant