Skip to content

Commit

Permalink
修改CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Sep 4, 2024
1 parent 7b85152 commit 9a0da0b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,26 @@ public ExecuteContext after(ExecuteContext context) throws Exception {
return doAfter(context);
}

/**
* Handling after the intercept point
*
* @param context context
* @return context
* @throws Exception Exception
*/
protected ExecuteContext doAfter(ExecuteContext context) throws Exception {
return context;
}

/**
* build gray group name and set consumer client configs
*
* @param consumer consumer
* @param namesrvAddr namesrvAddr
* @param topic topic
* @param consumerGroup consumerGroup
* @throws Exception Exception
*/
protected void buildGroupAndClientConfig(Object consumer, String namesrvAddr, String topic, String consumerGroup)
throws Exception {
String grayGroupTag = MqGrayscaleConfigUtils.getGrayGroupTag();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
**/
public class MqLitePullConsumerSubscribeInterceptor extends MqAbstractIntercepter {
@Override
public ExecuteContext doAfter(ExecuteContext context) throws Exception{
public ExecuteContext doAfter(ExecuteContext context) throws Exception {
DefaultLitePullConsumerImpl litePullConsumerImpl = (DefaultLitePullConsumerImpl) context.getObject();
DefaultLitePullConsumer pullConsumer = litePullConsumerImpl.getDefaultLitePullConsumer();
buildGroupAndClientConfig(pullConsumer, pullConsumer.getNamesrvAddr(), (String) context.getArguments()[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package io.sermant.mq.grayscale.interceptor;

import io.sermant.core.common.LoggerFactory;
import io.sermant.core.plugin.agent.entity.ExecuteContext;
import io.sermant.core.utils.StringUtils;
import io.sermant.mq.grayscale.service.MqConsumerGroupAutoCheck;
Expand All @@ -27,9 +26,7 @@
import org.apache.rocketmq.client.impl.factory.MQClientInstance;
import org.apache.rocketmq.common.protocol.heartbeat.SubscriptionData;

import java.util.Locale;
import java.util.concurrent.ConcurrentMap;
import java.util.logging.Logger;

/**
* TAG/SQL92 query message statement interceptor
Expand All @@ -38,8 +35,6 @@
* @since 2024-05-27
**/
public class MqSchedulerRebuildSubscriptionInterceptor extends MqAbstractIntercepter {
private static final Logger LOGGER = LoggerFactory.getLogger();

private final Object lock = new Object();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ public static void resetTagChangeMap(String namesrvAddr, String topic, String co

/**
* check expressionType is inaccurate
*
* @param expressionType expressionType
* @return is inaccurate
*/
Expand Down

0 comments on commit 9a0da0b

Please sign in to comment.