Skip to content

Conversation

Crazylychee
Copy link
Contributor

@Crazylychee Crazylychee commented Aug 20, 2025

Which Issue(s) This PR Fixes

Fixes #9623

Brief Description

In the original MessageStoreWithFilterTest class, when testing in a local Windows environment, MixAll's file deletion method failed to delete the commitlog files left over from previous tests. This caused tests to interfere with each other, leading to failures and inconsistent test results.

This pull request primarily aims to isolate the data for these tests, storing them in independent directories and releasing resources at the end, ensuring that local tests can pass.

How Did You Test This Change?

@Crazylychee Crazylychee changed the title [ISSUE #9628] Fix Failing Tests In MessageStoreWithFilterTest [ISSUE #9623] Fix Failing Tests In MessageStoreWithFilterTest Aug 20, 2025
@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.06%. Comparing base (f40a69f) to head (6347f75).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9624      +/-   ##
=============================================
- Coverage      48.15%   48.06%   -0.10%     
+ Complexity     12083    12057      -26     
=============================================
  Files           1313     1313              
  Lines          92839    92839              
  Branches       11870    11870              
=============================================
- Hits           44710    44619      -91     
- Misses         42636    42707      +71     
- Partials        5493     5513      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

# Conflicts:
#	broker/src/test/java/org/apache/rocketmq/broker/filter/MessageStoreWithFilterTest.java
@Crazylychee Crazylychee marked this pull request as draft August 30, 2025 09:06
@Crazylychee Crazylychee marked this pull request as ready for review August 30, 2025 09:23
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.

[Enhancement] Fix Failing Tests In MessageStoreWithFilterTest
2 participants