Subscription: add topic owner epoch fencing#17780
Conversation
|
Findings
( 和 TopicMetaKeeper.java#L112 (https://github.com/apache/iotdb/blob/76f2a882411ba790f7db290740f0232a1e5c4022/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/subscription/meta/topic/TopicMetaKeeper.java#L112)。建议改成版本化或长度前缀格式,或只从
( 和 SubscriptionInfo.java#L340 (https://github.com/apache/iotdb/blob/76f2a882411ba790f7db290740f0232a1e5c4022/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/subscription/SubscriptionInfo.java#L340)。建议在
(https://github.com/apache/iotdb/blob/76f2a882411ba790f7db290740f0232a1e5c4022/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProvider.java#L445)。建议显式处理 |
76f2a88 to
b6086b2
Compare
|
Thanks @Caideyipi, addressed the three findings in b6086b2.
Local verification passed:
The Sonar duplication check is queued again on the new commit; I will follow up if the rerun still fails. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #17780 +/- ##
============================================
+ Coverage 40.68% 40.74% +0.05%
+ Complexity 2620 318 -2302
============================================
Files 5244 5249 +5
Lines 362374 363866 +1492
Branches 46653 46886 +233
============================================
+ Hits 147419 148241 +822
- Misses 214955 215625 +670 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jt2594838
left a comment
There was a problem hiding this comment.
Add an IT to show a complete use case.
b6086b2 to
25c34c2
Compare
|
Addressed the latest review comments in 25c34c2.
Local verification:
|
jt2594838
left a comment
There was a problem hiding this comment.
Have you waited for all leases to expire before transferring the ownership?
|
Addressed the lease-transfer review comment in 82049d7. Topic ownership transfer now checks the current topic owner lease before replacing owner metadata: if the current owner has an unexpired Also addressed the inline comments in the same commit:
Local verification passed:
|
|




Summary
Tests