@@ -30,77 +30,77 @@ private IoTConsensusV2Messages() {}
3030 // ===================== IoTConsensusV2 lifecycle =====================
3131
3232 public static final String RECOVER_TASK_CANCELLED =
33- "IoTV2 Recover Task is cancelled" ;
33+ "IoTV2 recover task was cancelled" ;
3434 public static final String RECOVER_FUTURE_EXCEPTION =
3535 "Exception while waiting for recover future completion" ;
3636 public static final String RECOVER_TASK_INTERRUPTED =
37- "IoTV2 Recover Task is interrupted" ;
37+ "IoTV2 recover task was interrupted" ;
3838 public static final String FAILED_RECOVER_CONSENSUS =
39- "Failed to recover consensus from {} for {}, ignore it and continue recover other group, async backend checker thread will automatically deregister related pipe side effects for this failed consensus group." ;
39+ "Failed to recover consensus group {} from {}; ignoring it and continuing to recover other groups. The async backend checker thread will automatically deregister related pipe side effects for this failed consensus group." ;
4040 public static final String FAILED_RECOVER_CONSENSUS_READ_DIR =
41- "Failed to recover consensus from {} because read dir failed" ;
41+ "Failed to recover consensus from {} because reading the directory failed" ;
4242 public static final String FAILED_RECOVER_CONSENSUS_SHORT =
4343 "Failed to recover consensus from {}" ;
4444
4545 // ===================== IoTConsensusV2 peer operations =====================
4646
4747 public static final String START_DELETE_LOCAL_PEER =
48- "[{}] start to delete local peer for group {}" ;
48+ "[{}] start deleting local peer for group {}" ;
4949 public static final String FINISH_DELETE_LOCAL_PEER =
50- "[{}] finish deleting local peer for group {}" ;
50+ "[{}] finished deleting local peer for group {}" ;
5151 public static final String INACTIVATE_NEW_PEER =
52- "[{}] inactivate new peer: {}" ;
52+ "[{}] deactivate new peer: {}" ;
5353 public static final String NOTIFY_CREATE_CONSENSUS_PIPES =
5454 "[{}] notify current peers to create consensus pipes..." ;
5555 public static final String WAIT_PEERS_FINISH_TRANSFER =
56- "[{}] wait until all the other peers finish transferring..." ;
56+ "[{}] wait until all other peers finish transferring..." ;
5757 public static final String ACTIVATE_NEW_PEER =
5858 "[{}] activate new peer..." ;
5959 public static final String ADD_REMOTE_PEER_FAILED_CLEANUP =
60- "[{}] add remote peer failed, automatic cleanup side effects..." ;
60+ "[{}] failed to add remote peer, automatically cleaning up side effects..." ;
6161 public static final String FAILED_CLEANUP_SIDE_EFFECTS =
62- "[{}] failed to cleanup side effects after failed to add remote peer" ;
62+ "[{}] failed to clean up side effects after failing to add remote peer" ;
6363 public static final String NOTIFY_DROP_CONSENSUS_PIPES =
6464 "[{}] notify other peers to drop consensus pipes..." ;
6565 public static final String INACTIVATE_PEER =
66- "[{}] inactivate peer {}" ;
66+ "[{}] deactivate peer {}" ;
6767 public static final String WAIT_TARGET_PEER_COMPLETE_TRANSFER =
68- "[{}] wait target peer{} complete transfer..." ;
68+ "[{}] wait for target peer {} to complete transfer..." ;
6969 public static final String WAIT_PEER_RELEASE_RESOURCE =
70- "[{}] wait {} to release all resource ..." ;
70+ "[{}] wait for {} to release all resources ..." ;
7171 public static final String NOT_SUPPORT_LEADER_TRANSFER =
7272 "%s does not support leader transfer" ;
7373
7474 // ===================== IoTConsensusV2ServerImpl =====================
7575
7676 public static final String ERROR_SET_PEER_ACTIVE =
77- "error when set peer %s to active %s. result status: %s" ;
77+ "error when setting peer %s active status to %s. result status: %s" ;
7878 public static final String ERROR_SET_PEER_ACTIVE_SHORT =
79- "error when set peer %s to active %s" ;
79+ "error when setting peer %s active status to %s" ;
8080 public static final String TARGET_PEER_MAY_BE_DOWN =
81- "target peer may be down, error when set peer {} to active {}" ;
81+ "target peer may be down; error when setting peer {} active status to {}" ;
8282 public static final String CANNOT_NOTIFY_PEER_CREATE_PIPE =
83- "{} cannot notify peer {} to create consensus pipe, may because that peer is unknown currently, please manually check! " ;
83+ "{} cannot notify peer {} to create consensus pipe, possibly because that peer is currently unknown. Please check it manually. " ;
8484 public static final String CANNOT_CREATE_CONSENSUS_PIPE =
85- "{} cannot create consensus pipe to {}, may because target peer is unknown currently, please manually check! " ;
85+ "{} cannot create consensus pipe to {}, possibly because the target peer is currently unknown. Please check it manually. " ;
8686 public static final String ERROR_NOTIFY_PEER_CREATE_PIPE =
87- "error when notify peer %s to create consensus pipe" ;
87+ "error when notifying peer %s to create consensus pipe" ;
8888 public static final String CANNOT_NOTIFY_PEER_DROP_PIPE =
89- "{} cannot notify peer {} to drop consensus pipe, may because that peer is unknown currently, please manually check! " ;
89+ "{} cannot notify peer {} to drop consensus pipe, possibly because that peer is currently unknown. Please check it manually. " ;
9090 public static final String CANNOT_DROP_CONSENSUS_PIPE =
91- "{} cannot drop consensus pipe to {}, may because target peer is unknown currently, please manually check! " ;
91+ "{} cannot drop consensus pipe to {}, possibly because the target peer is currently unknown. Please check it manually. " ;
9292 public static final String ERROR_NOTIFY_PEER_DROP_PIPE =
93- "error when notify peer %s to drop consensus pipe" ;
93+ "error when notifying peer %s to drop consensus pipe" ;
9494 public static final String INTERRUPTED_WAITING_TRANSFER =
95- "{} is interrupted when waiting for transfer completed " ;
95+ "{} was interrupted while waiting for transfer completion " ;
9696 public static final String INTERRUPTED_WAITING_TRANSFER_FMT =
97- "%s is interrupted when waiting for transfer completed " ;
97+ "%s was interrupted while waiting for transfer completion " ;
9898 public static final String CANNOT_CHECK_PIPE_TRANSMISSION =
99- "{} cannot check consensus pipes transmission completed to peer {}" ;
99+ "{} cannot check whether consensus pipe transmission to peer {} has completed " ;
100100 public static final String ERROR_CHECK_PIPE_TRANSMISSION =
101- "error when check consensus pipes transmission completed to peer %s" ;
101+ "error when checking whether consensus pipe transmission to peer %s has completed " ;
102102 public static final String CANNOT_CHECK_PIPE_TRANSMISSION_SHORT =
103- "{} cannot check consensus pipes transmission completed" ;
103+ "{} cannot check whether consensus pipe transmission has completed" ;
104104
105105 // ===================== IoTConsensusV2RPCServiceProcessor =====================
106106
@@ -119,5 +119,5 @@ private IoTConsensusV2Messages() {}
119119 public static final String FAILED_DROP_CONSENSUS_PIPE =
120120 "Failed to drop consensus pipe to target peer with req {}" ;
121121 public static final String FAILED_CHECK_CONSENSUS_PIPE =
122- "Failed to check consensus pipe completed with req {}, set is completed to {}" ;
122+ "Failed to check whether consensus pipe has completed with req {}; set isCompleted to {}" ;
123123}
0 commit comments