We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d3a2d0 commit 45fc4e0Copy full SHA for 45fc4e0
1 file changed
client/src/main/java/org/apache/rocketmq/client/impl/mqclient/MQClientAPIExt.java
@@ -429,14 +429,12 @@ public CompletableFuture<Void> updateConsumerOffsetAsync(
429
return;
430
}
431
switch (response.getCode()) {
432
- case ResponseCode.SUCCESS: {
+ case ResponseCode.SUCCESS:
433
future.complete(null);
434
- }
435
- case ResponseCode.SYSTEM_ERROR:
436
- case ResponseCode.SUBSCRIPTION_GROUP_NOT_EXIST:
437
- case ResponseCode.TOPIC_NOT_EXIST: {
438
- future.completeExceptionally(new MQBrokerException(response.getCode(), response.getRemark()));
439
+ break;
+ default:
+ future.completeExceptionally(new MQBrokerException(response.getCode(), response.getRemark(), brokerAddr));
440
441
});
442
return future;
0 commit comments