You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "Caideyipi (via GitHub)" <gi...@apache.org> on 2026/06/03 07:24:41 UTC
[PR] Fix flaky StampedWriterPreferredLock test [iotdb]
Caideyipi opened a new pull request, #17832:
URL: https://github.com/apache/iotdb/pull/17832
### What
- Make `testAcquireReadLockWhileWriting` wait until the reader is actually blocked by the held write lock before releasing it.
- Wait for the reader thread to finish with a latch and release the write lock in failure paths.
### Testing
- `mvn -pl iotdb-core/datanode spotless:apply`
- `javac --release 8 ... StampedWriterPreferredLock.java StampedWriterPreferredLockTest.java && java ... org.junit.runner.JUnitCore org.apache.iotdb.db.metadata.mtree.lock.StampedWriterPreferredLockTest`
The full Maven datanode test command is currently blocked locally by unrelated datanode generated-source/test compilation errors.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix flaky StampedWriterPreferredLock test [iotdb]
Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
JackieTien97 merged PR #17832:
URL: https://github.com/apache/iotdb/pull/17832
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix flaky StampedWriterPreferredLock test [iotdb]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #17832:
URL: https://github.com/apache/iotdb/pull/17832#issuecomment-4610087342
## [](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=17832) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=17832&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=17832&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_iotdb&pullRequest=17832&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=17832&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=17832&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=17832)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix flaky StampedWriterPreferredLock test [iotdb]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #17832:
URL: https://github.com/apache/iotdb/pull/17832#issuecomment-4610335663
## [Codecov](https://app.codecov.io/gh/apache/iotdb/pull/17832?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 40.91%. Comparing base ([`a420681`](https://app.codecov.io/gh/apache/iotdb/commit/a4206813a0601c7249d2b50d7ecb246825ff6713?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`5363380`](https://app.codecov.io/gh/apache/iotdb/commit/5363380d576a4962a8e83b0dabc1d4bf117efc4d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 4 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #17832 +/- ##
============================================
+ Coverage 40.87% 40.91% +0.04%
Complexity 2611 2611
============================================
Files 5186 5187 +1
Lines 351308 351561 +253
Branches 44971 45008 +37
============================================
+ Hits 143585 143854 +269
+ Misses 207723 207707 -16
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/iotdb/pull/17832?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org