You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "lizhanhui (via GitHub)" <gi...@apache.org> on 2024/11/05 09:40:06 UTC
[PR] [ISSUE #8829] Keep data version while reload and XXXConfigManagerV2 turns off sync [rocketmq]
lizhanhui opened a new pull request, #8891:
URL: https://github.com/apache/rocketmq/pull/8891
Two minor changes are included:
1, no need to update data version while reload;
2, config-storage fdatasync on write proves to be too expensive, turn it off
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. -->
### Which Issue(s) This PR Fixes
<!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>) to ensure automatic closure. -->
Fixes #issue_id
### Brief Description
<!-- Write a brief description for your pull request to help the maintainer understand the reasons behind your changes. -->
### How Did You Test This Change?
<!-- In order to ensure the code quality of Apache RocketMQ, we expect every pull request to have undergone thorough testing. -->
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ISSUE #8829] Keep data version while reload and XXXConfigManagerV2 turns off sync [rocketmq]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #8891:
URL: https://github.com/apache/rocketmq/pull/8891#issuecomment-2456754993
## [Codecov](https://app.codecov.io/gh/apache/rocketmq/pull/8891?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 47.55%. Comparing base [(`5600684`)](https://app.codecov.io/gh/apache/rocketmq/commit/5600684eb437dd5a4aeb9c658e24200bcb74909b?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`997d541`)](https://app.codecov.io/gh/apache/rocketmq/commit/997d54162c55561cbaa0b44eb113489fae143e47?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## develop #8891 +/- ##
=============================================
- Coverage 47.71% 47.55% -0.17%
+ Complexity 11763 11734 -29
=============================================
Files 1304 1304
Lines 91051 91051
Branches 11675 11675
=============================================
- Hits 43448 43300 -148
- Misses 42274 42409 +135
- Partials 5329 5342 +13
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/rocketmq/pull/8891?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).
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ISSUE #8829] Keep data version while reload and XXXConfigManagerV2 turns off sync [rocketmq]
Posted by "tianliuliu (via GitHub)" <gi...@apache.org>.
tianliuliu commented on code in PR #8891:
URL: https://github.com/apache/rocketmq/pull/8891#discussion_r1829051806
##########
broker/src/main/java/org/apache/rocketmq/broker/config/v2/SubscriptionGroupManagerV2.java:
##########
@@ -72,7 +72,7 @@ private boolean loadSubscriptions() {
while (iterator.isValid()) {
SubscriptionGroupConfig subscriptionGroupConfig = parseSubscription(iterator.key(), iterator.value());
if (null != subscriptionGroupConfig) {
- super.updateSubscriptionGroupConfigWithoutPersist(subscriptionGroupConfig);
+ super.putSubscriptionGroupConfig(subscriptionGroupConfig);
Review Comment:
<img width="874" alt="image" src="https://github.com/user-attachments/assets/d06e71c2-b5ed-46a2-84c6-a3625596bb8f">
after update then print log?
##########
broker/src/main/java/org/apache/rocketmq/broker/config/v2/TopicConfigManagerV2.java:
##########
@@ -76,7 +76,7 @@ private boolean loadTopicConfig() {
byte[] value = iterator.value();
TopicConfig topicConfig = parseTopicConfig(key, value);
if (null != topicConfig) {
- super.updateSingleTopicConfigWithoutPersist(topicConfig);
+ super.putTopicConfig(topicConfig);
Review Comment:
same as above
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ISSUE #8829] Keep data version while reload and XXXConfigManagerV2 turns off sync [rocketmq]
Posted by "lizhanhui (via GitHub)" <gi...@apache.org>.
lizhanhui commented on code in PR #8891:
URL: https://github.com/apache/rocketmq/pull/8891#discussion_r1829070310
##########
broker/src/main/java/org/apache/rocketmq/broker/config/v2/SubscriptionGroupManagerV2.java:
##########
@@ -72,7 +72,7 @@ private boolean loadSubscriptions() {
while (iterator.isValid()) {
SubscriptionGroupConfig subscriptionGroupConfig = parseSubscription(iterator.key(), iterator.value());
if (null != subscriptionGroupConfig) {
- super.updateSubscriptionGroupConfigWithoutPersist(subscriptionGroupConfig);
+ super.putSubscriptionGroupConfig(subscriptionGroupConfig);
Review Comment:
We are actually loading existing config from persistence kv store, not updating.
Given there may be a lot of items while reboot loading, log this may flood the log files unnecessarily.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ISSUE #8829] Keep data version while reload and XXXConfigManagerV2 turns off sync [rocketmq]
Posted by "lizhanhui (via GitHub)" <gi...@apache.org>.
lizhanhui commented on code in PR #8891:
URL: https://github.com/apache/rocketmq/pull/8891#discussion_r1829070651
##########
broker/src/main/java/org/apache/rocketmq/broker/config/v2/TopicConfigManagerV2.java:
##########
@@ -76,7 +76,7 @@ private boolean loadTopicConfig() {
byte[] value = iterator.value();
TopicConfig topicConfig = parseTopicConfig(key, value);
if (null != topicConfig) {
- super.updateSingleTopicConfigWithoutPersist(topicConfig);
+ super.putTopicConfig(topicConfig);
Review Comment:
The same rationale applies.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ISSUE #8829] Keep data version while reload and XXXConfigManagerV2 turns off sync [rocketmq]
Posted by "RongtongJin (via GitHub)" <gi...@apache.org>.
RongtongJin merged PR #8891:
URL: https://github.com/apache/rocketmq/pull/8891
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org