Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public boolean isMatchedByCommitLog(ByteBuffer msgBuffer, Map<String, String> pr
decoded = true;
tempProperties = MessageDecoder.decodeProperties(msgBuffer);
}
if (tempProperties == null) {
return false;
}
String realTopic = tempProperties.get(MessageConst.PROPERTY_RETRY_TOPIC);
String group = KeyBuilder.parseGroup(subscriptionData.getTopic());
realFilterData = this.consumerFilterManager.get(realTopic, group);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,18 @@ private CompletableFuture<Boolean> appendCheckPointThenAckOrigin(
this.brokerController.getBrokerStatsManager().incBrokerCkNums(1);
this.brokerController.getBrokerStatsManager().incGroupCkNums(requestHeader.getConsumerGroup(), requestHeader.getTopic(), 1);
}
}
if (putMessageResult.getPutMessageStatus() != PutMessageStatus.PUT_OK
&& putMessageResult.getPutMessageStatus() != PutMessageStatus.FLUSH_DISK_TIMEOUT
&& putMessageResult.getPutMessageStatus() != PutMessageStatus.FLUSH_SLAVE_TIMEOUT
&& putMessageResult.getPutMessageStatus() != PutMessageStatus.SLAVE_NOT_AVAILABLE) {
POP_LOGGER.error("change invisible, put new ck error: {}", putMessageResult);
return CompletableFuture.completedFuture(false);
if (putMessageResult.getPutMessageStatus() != PutMessageStatus.PUT_OK
&& putMessageResult.getPutMessageStatus() != PutMessageStatus.FLUSH_DISK_TIMEOUT
&& putMessageResult.getPutMessageStatus() != PutMessageStatus.FLUSH_SLAVE_TIMEOUT
&& putMessageResult.getPutMessageStatus() != PutMessageStatus.SLAVE_NOT_AVAILABLE) {
POP_LOGGER.error("change invisible, put new ck error: {}", putMessageResult);
return CompletableFuture.completedFuture(false);
} else {
return ackOrigin(requestHeader, extraInfo);
}
} else {
return ackOrigin(requestHeader, extraInfo);
POP_LOGGER.error("change invisible, put new ck error: putMessageResult is null");
return CompletableFuture.completedFuture(false);
}
}).exceptionally(throwable -> {
POP_LOGGER.error("change invisible, put new ck error", throwable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void updateTopicQueueMapping(TopicQueueMappingDetail newDetail, boolean f
return;
}
if (force) {
//bakeup the old items
//backup the old items
oldDetail.getHostedQueues().forEach((queueId, items) -> {
newDetail.getHostedQueues().putIfAbsent(queueId, items);
});
Expand Down