Skip to content

Commit 4dd1f43

Browse files
committed
fix
1 parent 773a4da commit 4dd1f43

16 files changed

Lines changed: 253 additions & 253 deletions

File tree

iotdb-client/subscription/src/main/i18n/en/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public final class SubscriptionMessages {
2626

2727
// --- SubscriptionPollRequest ---
2828
public static final String UNEXPECTED_REQUEST_TYPE =
29-
"unexpected request type: {}, payload will be null";
29+
"Unexpected request type: {}, payload will be null";
3030

3131
// --- SubscriptionPollResponse ---
3232
public static final String UNEXPECTED_RESPONSE_TYPE =
33-
"unexpected response type: {}, payload will be null";
33+
"Unexpected response type: {}, payload will be null";
3434

3535
// --- IdentifierUtils ---
3636
public static final String NULL_IDENTIFIER_NOT_SUPPORTED = "null identifier is not supported";
@@ -41,55 +41,56 @@ public final class SubscriptionMessages {
4141

4242
// --- AbstractSubscriptionPushConsumer ---
4343
public static final String PUSH_CONSUMER_CANCEL_AUTO_POLL =
44-
"SubscriptionPushConsumer {} cancel auto poll worker";
44+
"SubscriptionPushConsumer {} is canceling the auto-poll worker";
4545
public static final String PUSH_CONSUMER_SUBMIT_AUTO_POLL =
46-
"SubscriptionPushConsumer {} submit auto poll worker";
46+
"SubscriptionPushConsumer {} is submitting the auto-poll worker";
4747
public static final String CONSUMER_LISTENER_FAILURE =
48-
"Consumer listener result failure when consuming message: {}";
49-
public static final String AUTO_POLL_UNEXPECTED = "something unexpected happened when auto poll messages...";
48+
"Consumer listener returned failure when consuming message: {}";
49+
public static final String AUTO_POLL_UNEXPECTED =
50+
"Unexpected exception while auto-polling messages.";
5051

5152
// --- SubscriptionExecutorServiceManager ---
5253
public static final String EXECUTOR_LAUNCHING = "Launching {} with core pool size {}...";
5354
public static final String EXECUTOR_SHUTTING_DOWN = "Shutting down {}...";
5455
public static final String EXECUTOR_NOT_LAUNCHED_SUBMIT =
55-
"{} has not been launched, ignore submit task";
56+
"{} has not been launched, ignoring submitted task";
5657
public static final String EXECUTOR_NOT_LAUNCHED_INVOKE =
57-
"{} has not been launched, ignore invoke all tasks";
58+
"{} has not been launched, ignoring invokeAll tasks";
5859
public static final String EXECUTOR_NOT_LAUNCHED_ZERO =
59-
"{} has not been launched, return zero";
60+
"{} has not been launched, returning zero";
6061
public static final String EXECUTOR_NOT_LAUNCHED_SCHEDULE =
61-
"{} has not been launched, ignore scheduleWithFixedDelay for task";
62+
"{} has not been launched, ignoring scheduleWithFixedDelay task";
6263

6364
// --- AbstractSubscriptionProviders ---
6465
public static final String PROVIDER_CLOSE_FAILED =
65-
"Failed to close subscription provider {} because of {}";
66-
public static final String ADD_NEW_PROVIDER = "add new subscription provider {}";
67-
public static final String CLOSE_STALE_PROVIDER = "close and remove stale subscription provider {}";
66+
"Failed to close subscription provider {} because {}";
67+
public static final String ADD_NEW_PROVIDER = "Adding new subscription provider {}";
68+
public static final String CLOSE_STALE_PROVIDER = "Closing and removing stale subscription provider {}";
6869
public static final String OPEN_PROVIDERS_FAILED =
69-
"Failed to open providers for consumer {} because of {}";
70+
"Failed to open providers for consumer {} because {}";
7071
public static final String FETCH_ENDPOINTS_FAILED =
71-
"Failed to fetch all endpoints for consumer {} because of {}";
72+
"Failed to fetch all endpoints for consumer {} because {}";
7273

7374
// --- AbstractSubscriptionPullConsumer ---
7475
public static final String PULL_CONSUMER_CANCEL_AUTO_COMMIT =
75-
"SubscriptionPullConsumer {} cancel auto commit worker";
76+
"SubscriptionPullConsumer {} is canceling the auto-commit worker";
7677
public static final String PULL_CONSUMER_SUBMIT_AUTO_COMMIT =
77-
"SubscriptionPullConsumer {} submit auto commit worker";
78+
"SubscriptionPullConsumer {} is submitting the auto-commit worker";
7879
public static final String AUTO_COMMIT_UNEXPECTED =
79-
"something unexpected happened when auto commit messages...";
80+
"Unexpected exception while auto-committing messages.";
8081
public static final String COMMIT_DURING_CLOSE_UNEXPECTED =
81-
"something unexpected happened when commit messages during close";
82+
"Unexpected exception while committing messages during close.";
8283

8384
// --- AbstractSubscriptionConsumer ---
84-
public static final String UNEXPECTED_RESPONSE_TYPE_WARN = "unexpected response type: {}";
85+
public static final String UNEXPECTED_RESPONSE_TYPE_WARN = "Unexpected response type: {}";
8586
public static final String CONSUMER_CANCEL_HEARTBEAT_WORKER =
86-
"SubscriptionConsumer {} cancel heartbeat worker";
87+
"SubscriptionConsumer {} is canceling the heartbeat worker";
8788
public static final String CONSUMER_SUBMIT_HEARTBEAT_WORKER =
88-
"SubscriptionConsumer {} submit heartbeat worker";
89+
"SubscriptionConsumer {} is submitting the heartbeat worker";
8990
public static final String CONSUMER_CANCEL_ENDPOINTS_SYNCER =
90-
"SubscriptionConsumer {} cancel endpoints syncer";
91+
"SubscriptionConsumer {} is canceling the endpoints syncer";
9192
public static final String CONSUMER_SUBMIT_ENDPOINTS_SYNCER =
92-
"SubscriptionConsumer {} submit endpoints syncer";
93+
"SubscriptionConsumer {} is submitting the endpoints syncer";
9394

9495
private SubscriptionMessages() {}
9596
}

0 commit comments

Comments
 (0)