Skip to content

Commit 2791833

Browse files
authored
Fix typos (#9560)
1 parent 100f467 commit 2791833

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

broker/src/main/java/org/apache/rocketmq/broker/config/v1/RocksDBSubscriptionGroupManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private boolean merge() {
114114
} else {
115115
log.info("dataVersion is not greater than kvDataVersion, no need to merge group metaData, dataVersion={}, kvDataVersion={}", dataVersion, kvDataVersion);
116116
}
117-
log.info("finish marge subscription config from json file and merge to rocksdb");
117+
log.info("finish merge subscription config from json file and merge to rocksdb");
118118
this.persist();
119119

120120
return true;

client/src/main/java/org/apache/rocketmq/client/impl/MQAdminImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public List<MessageQueue> fetchPublishMessageQueues(String topic) throws MQClien
153153
throw new MQClientException("Can not find Message Queue for this topic, " + topic, e);
154154
}
155155

156-
throw new MQClientException("Unknow why, Can not find Message Queue for this topic, " + topic, null);
156+
throw new MQClientException("Unknown why, Can not find Message Queue for this topic, " + topic, null);
157157
}
158158

159159
public List<MessageQueue> parsePublishMessageQueues(List<MessageQueue> messageQueueList) {

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
@@ -559,7 +559,7 @@ public void onException(Throwable e) {
559559
}
560560
});
561561
} catch (MQBrokerException e) {
562-
throw new MQClientException("pullAsync unknow exception", e);
562+
throw new MQClientException("pullAsync unknown exception", e);
563563
}
564564
}
565565

client/src/main/java/org/apache/rocketmq/client/producer/DefaultMQProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ public Message request(final Message msg, final MessageQueueSelector selector, f
863863
/**
864864
* Same to {@link #request(Message, RequestCallback, long)} with target message selector specified.
865865
*
866-
* @param msg requst message to send
866+
* @param msg request message to send
867867
* @param selector message queue selector, through which we get target message queue to deliver message to.
868868
* @param arg argument to work along with message queue selector.
869869
* @param requestCallback callback to execute on request completion.

common/src/main/java/org/apache/rocketmq/common/queue/ConcurrentTreeMap.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ public V putIfAbsentAndRetExsit(K key, V value) {
5353
lock.lock();
5454
try {
5555
if (roundQueue.put(key)) {
56-
V exsit = tree.get(key);
57-
if (null == exsit) {
56+
V exist = tree.get(key);
57+
if (null == exist) {
5858
tree.put(key, value);
59-
exsit = value;
59+
exist = value;
6060
}
6161
log.warn("putIfAbsentAndRetExsit success. " + key);
62-
return exsit;
62+
return exist;
6363
} else {
64-
V exsit = tree.get(key);
65-
return exsit;
64+
V exist = tree.get(key);
65+
return exist;
6666
}
6767
} finally {
6868
lock.unlock();

common/src/main/java/org/apache/rocketmq/common/statistics/StatisticsItemScheduledIncrementPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public StatisticsItemScheduledIncrementPrinter(String name, StatisticsItemPrinte
5252
public void schedule(final StatisticsItem item) {
5353
setItemSampleBrief(item.getStatKind(), item.getStatObject(), new StatisticsItemSampleBrief(item, tpsItemNames));
5454

55-
// print log every ${interval} miliseconds
55+
// print log every ${interval} milliseconds
5656
ScheduledFuture future = executor.scheduleAtFixedRate(new Runnable() {
5757
@Override
5858
public void run() {

0 commit comments

Comments
 (0)