Skip to content

Commit 01f12e7

Browse files
committed
fix
1 parent 4dd1f43 commit 01f12e7

4 files changed

Lines changed: 14 additions & 18 deletions

File tree

iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionConsumer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,8 @@ Map<Integer, TEndPoint> fetchAllEndPointsWithRedirection() throws SubscriptionEx
14011401
if (providers.isEmpty()) {
14021402
throw new SubscriptionConnectionException(
14031403
String.format(
1404-
"Cluster has no available subscription providers when %s fetches all endpoints", this));
1404+
"Cluster has no available subscription providers when %s fetches all endpoints",
1405+
this));
14051406
}
14061407
for (final AbstractSubscriptionProvider provider : providers) {
14071408
try {

iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProviders.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ void openProviders(final AbstractSubscriptionConsumer consumer) throws Subscript
9797
try {
9898
allEndPoints = defaultProvider.heartbeat().getEndPoints();
9999
} catch (final Exception e) {
100-
LOGGER.warn("{} failed to fetch all endpoints from {} because {}", consumer, endPoint, e, e);
100+
LOGGER.warn(
101+
"{} failed to fetch all endpoints from {} because {}", consumer, endPoint, e, e);
101102
break;
102103
}
103104

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/SubscriptionBroker.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ private Set<String> prepareCandidateTopicNames(
187187
// If there is no prefetching queue for the topic, check if it's completed
188188
if (Objects.isNull(prefetchingQueue)) {
189189
if (completedTopicNames.containsKey(topicName)) {
190-
LOGGER.info(
191-
"Subscription: prefetching queue bound to topic [{}] for consumer group [{}] is completed, returning termination response to client",
192-
topicName,
193-
brokerId);
190+
LOGGER.info(
191+
"Subscription: prefetching queue bound to topic [{}] for consumer group [{}] is completed, returning termination response to client",
192+
topicName,
193+
brokerId);
194194
// Add a termination event for the completed topic
195195
eventsToPoll.add(
196196
new SubscriptionEvent(

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/receiver/SubscriptionReceiverV1.java

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ private TPipeSubscribeResp handlePipeSubscribeHandshake(final PipeSubscribeHands
240240
LOGGER.warn(DataNodeMiscMessages.SUBSCRIPTION_EXCEPTION_HANDSHAKING, req, e);
241241
final String exceptionMessage =
242242
String.format(
243-
"Subscription: unexpected exception while handling handshake request %s: %s",
244-
req, e);
243+
"Subscription: unexpected exception while handling handshake request %s: %s", req, e);
245244
return PipeSubscribeHandshakeResp.toTPipeSubscribeResp(
246245
RpcUtils.getStatus(TSStatusCode.SUBSCRIPTION_HANDSHAKE_ERROR, exceptionMessage),
247246
-1,
@@ -308,8 +307,7 @@ private TPipeSubscribeResp handlePipeSubscribeHeartbeat(final PipeSubscribeHeart
308307
LOGGER.warn(DataNodeMiscMessages.SUBSCRIPTION_EXCEPTION_HEARTBEAT, req, e);
309308
final String exceptionMessage =
310309
String.format(
311-
"Subscription: unexpected exception while handling heartbeat request %s: %s",
312-
req, e);
310+
"Subscription: unexpected exception while handling heartbeat request %s: %s", req, e);
313311
return PipeSubscribeHeartbeatResp.toTPipeSubscribeResp(
314312
RpcUtils.getStatus(TSStatusCode.SUBSCRIPTION_HEARTBEAT_ERROR, exceptionMessage));
315313
}
@@ -384,8 +382,7 @@ private TPipeSubscribeResp handlePipeSubscribeSubscribe(final PipeSubscribeSubsc
384382
LOGGER.warn(DataNodeMiscMessages.SUBSCRIPTION_EXCEPTION_SUBSCRIBING, req, e);
385383
final String exceptionMessage =
386384
String.format(
387-
"Subscription: unexpected exception while handling subscribe request %s: %s",
388-
req, e);
385+
"Subscription: unexpected exception while handling subscribe request %s: %s", req, e);
389386
return PipeSubscribeSubscribeResp.toTPipeSubscribeResp(
390387
RpcUtils.getStatus(TSStatusCode.SUBSCRIPTION_SUBSCRIBE_ERROR, exceptionMessage));
391388
}
@@ -466,8 +463,7 @@ private TPipeSubscribeResp handlePipeSubscribePoll(final PipeSubscribePollReq re
466463
LOGGER.warn(DataNodeMiscMessages.SUBSCRIPTION_EXCEPTION_POLLING, req, e);
467464
final String exceptionMessage =
468465
String.format(
469-
"Subscription: unexpected exception while handling poll request %s: %s",
470-
req, e);
466+
"Subscription: unexpected exception while handling poll request %s: %s", req, e);
471467
return PipeSubscribePollResp.toTPipeSubscribeResp(
472468
RpcUtils.getStatus(TSStatusCode.SUBSCRIPTION_POLL_ERROR, exceptionMessage),
473469
Collections.emptyList());
@@ -645,8 +641,7 @@ private TPipeSubscribeResp handlePipeSubscribeCommit(final PipeSubscribeCommitRe
645641
LOGGER.warn(DataNodeMiscMessages.SUBSCRIPTION_EXCEPTION_COMMITTING, req, e);
646642
final String exceptionMessage =
647643
String.format(
648-
"Subscription: unexpected exception while handling commit request %s: %s",
649-
req, e);
644+
"Subscription: unexpected exception while handling commit request %s: %s", req, e);
650645
return PipeSubscribeCommitResp.toTPipeSubscribeResp(
651646
RpcUtils.getStatus(TSStatusCode.SUBSCRIPTION_COMMIT_ERROR, exceptionMessage));
652647
}
@@ -692,8 +687,7 @@ private TPipeSubscribeResp handlePipeSubscribeClose(final PipeSubscribeCloseReq
692687
LOGGER.warn(DataNodeMiscMessages.SUBSCRIPTION_EXCEPTION_CLOSING, req, e);
693688
final String exceptionMessage =
694689
String.format(
695-
"Subscription: unexpected exception while handling close request %s: %s",
696-
req, e);
690+
"Subscription: unexpected exception while handling close request %s: %s", req, e);
697691
return PipeSubscribeCloseResp.toTPipeSubscribeResp(
698692
RpcUtils.getStatus(TSStatusCode.SUBSCRIPTION_CLOSE_ERROR, exceptionMessage));
699693
}

0 commit comments

Comments
 (0)