Skip to content

Commit

Permalink
[improve] add ckptid in label when 2pc false (apache#207)
Browse files Browse the repository at this point in the history
Currently, when 2pc is closed, the label will only splice the uuid without adding the ckid, which is inconvenient to locate the problem.
  • Loading branch information
JNSimba authored Oct 13, 2023
1 parent 222ce60 commit 84b9bda
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public LabelGenerator(String labelPrefix, boolean enable2PC) {
}

public String generateLabel(long chkId) {
return enable2PC ? labelPrefix + "_" + chkId : labelPrefix + "_" + UUID.randomUUID();
String label = labelPrefix + "_" + chkId;
return enable2PC ? label : label + "_" + UUID.randomUUID();
}

public String generateBatchLabel() {
Expand Down

0 comments on commit 84b9bda

Please sign in to comment.