Skip to content

Commit

Permalink
修改同步更新tags方法名称
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Sep 14, 2024
1 parent 0673593 commit 66bb408
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</parent>

<artifactId>mq-config-common</artifactId>
<packaging>jar</packaging>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ private void buildSql92SubscriptionData(ExecuteContext context, SubscriptionData
String consumerGroup = pullConsumer.getConsumerGroup();
if (StringUtils.isEmpty(RocketMqGrayscaleConfigUtils.getGrayGroupTag())) {
RocketMqConsumerGroupAutoCheck.setMqClientInstance(subscriptionData.getTopic(), consumerGroup, instance);
RocketMqConsumerGroupAutoCheck.syncUpdateCacheGrayTags();
RocketMqConsumerGroupAutoCheck.startSchedulerCheckGroupTask();
}
RocketMqConsumerGroupAutoCheck.syncCheckGrayConsumerGroup();
RocketMqConsumerGroupAutoCheck.startSchedulerCheckGroupTask();
String namesrvAddr = instance.getClientConfig().getNamesrvAddr();
String subscribeScope = RocketMqSubscriptionDataUtils.buildSubscribeScope(subscriptionData.getTopic(),
consumerGroup, namesrvAddr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ private void buildSql92SubscriptionData(SubscriptionData subscriptionData, Rebal
MQClientInstance instance = balance.getmQClientFactory();
if (StringUtils.isEmpty(RocketMqGrayscaleConfigUtils.getGrayGroupTag())) {
RocketMqConsumerGroupAutoCheck.setMqClientInstance(topic, consumerGroup, instance);
RocketMqConsumerGroupAutoCheck.syncUpdateCacheGrayTags();
RocketMqConsumerGroupAutoCheck.startSchedulerCheckGroupTask();
}
RocketMqConsumerGroupAutoCheck.syncCheckGrayConsumerGroup();
RocketMqConsumerGroupAutoCheck.startSchedulerCheckGroupTask();
String namesrvAddr = balance.getmQClientFactory().getClientConfig().getNamesrvAddr();
resetsSql92SubscriptionData(topic, consumerGroup, subscriptionData, namesrvAddr);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static void setMqClientInstance(String topic, String consumerGroup, MQCli
/**
* sync check gray consumer group is running and update gray tags
*/
public static void syncCheckGrayConsumerGroup() {
public static void syncUpdateCacheGrayTags() {
if (RocketMqGrayscaleConfigUtils.getConsumeType() == ConsumeModeEnum.AUTO && !START_AUTO_CHECK.get()) {
// sync to obtain current gray consumer group at AUTO mode before start scheduler check group
findGrayConsumerGroupAndUpdateGrayTags();
Expand Down

0 comments on commit 66bb408

Please sign in to comment.