Skip to content

Commit 315c2bc

Browse files
authored
rollback spelling fix to avoid incompatile (apache#3749)
1 parent e8fe43c commit 315c2bc

18 files changed

+35
-35
lines changed

client/src/main/java/org/apache/rocketmq/client/impl/consumer/ConsumeMessageOrderlyService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public boolean sendMessageBack(final MessageExt msg) {
378378
MessageAccessor.clearProperty(newMsg, MessageConst.PROPERTY_TRANSACTION_PREPARED);
379379
newMsg.setDelayTimeLevel(3 + msg.getReconsumeTimes());
380380

381-
this.defaultMQPushConsumer.getDefaultMQPushConsumerImpl().getMqClientFactory().getDefaultMQProducer().send(newMsg);
381+
this.defaultMQPushConsumer.getDefaultMQPushConsumerImpl().getmQClientFactory().getDefaultMQProducer().send(newMsg);
382382
return true;
383383
} catch (Exception e) {
384384
log.error("sendMessageBack exception, group: " + this.consumerGroup + " msg: " + msg.toString(), e);

client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultLitePullConsumerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private void initRebalanceImpl() {
329329
this.rebalanceImpl.setConsumerGroup(this.defaultLitePullConsumer.getConsumerGroup());
330330
this.rebalanceImpl.setMessageModel(this.defaultLitePullConsumer.getMessageModel());
331331
this.rebalanceImpl.setAllocateMessageQueueStrategy(this.defaultLitePullConsumer.getAllocateMessageQueueStrategy());
332-
this.rebalanceImpl.setMqClientFactory(this.mQClientFactory);
332+
this.rebalanceImpl.setmQClientFactory(this.mQClientFactory);
333333
}
334334

335335
private void initPullAPIWrapper() {

client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPullConsumerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ public synchronized void start() throws MQClientException {
637637
this.rebalanceImpl.setConsumerGroup(this.defaultMQPullConsumer.getConsumerGroup());
638638
this.rebalanceImpl.setMessageModel(this.defaultMQPullConsumer.getMessageModel());
639639
this.rebalanceImpl.setAllocateMessageQueueStrategy(this.defaultMQPullConsumer.getAllocateMessageQueueStrategy());
640-
this.rebalanceImpl.setMqClientFactory(this.mQClientFactory);
640+
this.rebalanceImpl.setmQClientFactory(this.mQClientFactory);
641641

642642
this.pullAPIWrapper = new PullAPIWrapper(
643643
mQClientFactory,

client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public synchronized void start() throws MQClientException {
591591
this.rebalanceImpl.setConsumerGroup(this.defaultMQPushConsumer.getConsumerGroup());
592592
this.rebalanceImpl.setMessageModel(this.defaultMQPushConsumer.getMessageModel());
593593
this.rebalanceImpl.setAllocateMessageQueueStrategy(this.defaultMQPushConsumer.getAllocateMessageQueueStrategy());
594-
this.rebalanceImpl.setMqClientFactory(this.mQClientFactory);
594+
this.rebalanceImpl.setmQClientFactory(this.mQClientFactory);
595595

596596
this.pullAPIWrapper = new PullAPIWrapper(
597597
mQClientFactory,
@@ -1089,11 +1089,11 @@ public ConsumerRunningInfo consumerRunningInfo() {
10891089
return info;
10901090
}
10911091

1092-
public MQClientInstance getMqClientFactory() {
1092+
public MQClientInstance getmQClientFactory() {
10931093
return mQClientFactory;
10941094
}
10951095

1096-
public void setMqClientFactory(MQClientInstance mQClientFactory) {
1096+
public void setmQClientFactory(MQClientInstance mQClientFactory) {
10971097
this.mQClientFactory = mQClientFactory;
10981098
}
10991099

client/src/main/java/org/apache/rocketmq/client/impl/consumer/RebalanceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,11 @@ public void setAllocateMessageQueueStrategy(AllocateMessageQueueStrategy allocat
472472
this.allocateMessageQueueStrategy = allocateMessageQueueStrategy;
473473
}
474474

475-
public MQClientInstance getMqClientFactory() {
475+
public MQClientInstance getmQClientFactory() {
476476
return mQClientFactory;
477477
}
478478

479-
public void setMqClientFactory(MQClientInstance mQClientFactory) {
479+
public void setmQClientFactory(MQClientInstance mQClientFactory) {
480480
this.mQClientFactory = mQClientFactory;
481481
}
482482

client/src/main/java/org/apache/rocketmq/client/impl/consumer/RebalancePushImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void messageQueueChanged(String topic, Set<MessageQueue> mqAll, Set<Messa
7878
}
7979

8080
// notify broker
81-
this.getMqClientFactory().sendHeartbeatToAllBrokerWithLock();
81+
this.getmQClientFactory().sendHeartbeatToAllBrokerWithLock();
8282
}
8383

8484
@Override
@@ -114,7 +114,7 @@ private boolean unlockDelay(final MessageQueue mq, final ProcessQueue pq) {
114114

115115
if (pq.hasTempMessage()) {
116116
log.info("[{}]unlockDelay, begin {} ", mq.hashCode(), mq);
117-
this.defaultMQPushConsumerImpl.getMqClientFactory().getScheduledExecutorService().schedule(new Runnable() {
117+
this.defaultMQPushConsumerImpl.getmQClientFactory().getScheduledExecutorService().schedule(new Runnable() {
118118
@Override
119119
public void run() {
120120
log.info("[{}]unlockDelay, execute at once {}", mq.hashCode(), mq);

client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public void updateFaultItem(final String brokerName, final long currentLatency,
531531
}
532532

533533
private void validateNameServerSetting() throws MQClientException {
534-
List<String> nsList = this.getMqClientFactory().getMQClientAPIImpl().getNameServerAddressList();
534+
List<String> nsList = this.getmQClientFactory().getMQClientAPIImpl().getNameServerAddressList();
535535
if (null == nsList || nsList.isEmpty()) {
536536
throw new MQClientException(
537537
"No name server address, please set it." + FAQUrl.suggestTodo(FAQUrl.NAME_SERVER_ADDR_NOT_EXIST_URL), null).setResponseCode(ClientErrorCode.NO_NAME_SERVER_EXCEPTION);
@@ -871,7 +871,7 @@ private SendResult sendKernelImpl(final Message msg,
871871
throw new MQClientException("The broker[" + mq.getBrokerName() + "] not exist", null);
872872
}
873873

874-
public MQClientInstance getMqClientFactory() {
874+
public MQClientInstance getmQClientFactory() {
875875
return mQClientFactory;
876876
}
877877

@@ -1543,16 +1543,16 @@ private void requestFail(final String correlationId) {
15431543

15441544
private void prepareSendRequest(final Message msg, long timeout) {
15451545
String correlationId = CorrelationIdUtil.createCorrelationId();
1546-
String requestClientId = this.getMqClientFactory().getClientId();
1546+
String requestClientId = this.getmQClientFactory().getClientId();
15471547
MessageAccessor.putProperty(msg, MessageConst.PROPERTY_CORRELATION_ID, correlationId);
15481548
MessageAccessor.putProperty(msg, MessageConst.PROPERTY_MESSAGE_REPLY_TO_CLIENT, requestClientId);
15491549
MessageAccessor.putProperty(msg, MessageConst.PROPERTY_MESSAGE_TTL, String.valueOf(timeout));
15501550

1551-
boolean hasRouteData = this.getMqClientFactory().getTopicRouteTable().containsKey(msg.getTopic());
1551+
boolean hasRouteData = this.getmQClientFactory().getTopicRouteTable().containsKey(msg.getTopic());
15521552
if (!hasRouteData) {
15531553
long beginTimestamp = System.currentTimeMillis();
15541554
this.tryToFindTopicPublishInfo(msg.getTopic());
1555-
this.getMqClientFactory().sendHeartbeatToAllBrokerWithLock();
1555+
this.getmQClientFactory().sendHeartbeatToAllBrokerWithLock();
15561556
long cost = System.currentTimeMillis() - beginTimestamp;
15571557
if (cost > 500) {
15581558
log.warn("prepare send request for <{}> cost {} ms", msg.getTopic(), cost);

client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ private Set<String> tryGetMessageQueueBrokerSet(DefaultMQProducerImpl producer,
413413
TopicPublishInfo topicPublishInfo = producer.getTopicPublishInfoTable().get(topic);
414414
if (null == topicPublishInfo || !topicPublishInfo.ok()) {
415415
producer.getTopicPublishInfoTable().putIfAbsent(topic, new TopicPublishInfo());
416-
producer.getMqClientFactory().updateTopicRouteInfoFromNameServer(topic);
416+
producer.getmQClientFactory().updateTopicRouteInfoFromNameServer(topic);
417417
topicPublishInfo = producer.getTopicPublishInfoTable().get(topic);
418418
}
419419
if (topicPublishInfo.isHaveTopicRouterInfo() || topicPublishInfo.ok()) {

client/src/main/java/org/apache/rocketmq/client/trace/hook/EndTransactionTraceHookImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void endTransaction(EndTransactionContext context) {
6363
traceBean.setKeys(context.getMessage().getKeys());
6464
traceBean.setStoreHost(context.getBrokerAddr());
6565
traceBean.setMsgType(MessageType.Trans_msg_Commit);
66-
traceBean.setClientHost(((AsyncTraceDispatcher)localDispatcher).getHostProducer().getMqClientFactory().getClientId());
66+
traceBean.setClientHost(((AsyncTraceDispatcher)localDispatcher).getHostProducer().getmQClientFactory().getClientId());
6767
traceBean.setMsgId(context.getMsgId());
6868
traceBean.setTransactionState(context.getTransactionState());
6969
traceBean.setTransactionId(context.getTransactionId());

client/src/test/java/org/apache/rocketmq/client/impl/consumer/ConsumeMessageConcurrentlyServiceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public ConsumeConcurrentlyStatus consumeMessage(List<MessageExt> msgs,
102102
pushConsumer.subscribe(topic, "*");
103103
pushConsumer.start();
104104

105-
mQClientFactory = spy(pushConsumerImpl.getMqClientFactory());
105+
mQClientFactory = spy(pushConsumerImpl.getmQClientFactory());
106106
field = DefaultMQPushConsumerImpl.class.getDeclaredField("mQClientFactory");
107107
field.setAccessible(true);
108108
field.set(pushConsumerImpl, mQClientFactory);
@@ -116,7 +116,7 @@ public ConsumeConcurrentlyStatus consumeMessage(List<MessageExt> msgs,
116116
field.setAccessible(true);
117117
field.set(pushConsumerImpl, pullAPIWrapper);
118118

119-
pushConsumer.getDefaultMQPushConsumerImpl().getRebalanceImpl().setMqClientFactory(mQClientFactory);
119+
pushConsumer.getDefaultMQPushConsumerImpl().getRebalanceImpl().setmQClientFactory(mQClientFactory);
120120
mQClientFactory.registerConsumer(consumerGroup, pushConsumerImpl);
121121

122122
when(mQClientFactory.getMQClientAPIImpl().pullMessage(anyString(), any(PullMessageRequestHeader.class),

0 commit comments

Comments
 (0)