Skip to content

Commit

Permalink
[Enhancement] Add replication_num in exception message when chosen ba…
Browse files Browse the repository at this point in the history
…ckends failed in creating tablet (backport #51401) (#51415)

Co-authored-by: xiangguangyxg <110401425+xiangguangyxg@users.noreply.github.com>
  • Loading branch information
mergify[bot] and xiangguangyxg authored Sep 26, 2024
1 parent 9f7bebd commit 2310671
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2402,8 +2402,9 @@ private void createOlapTablets(OlapTable table, MaterializedIndex index, Replica
try {
chosenBackendIds = chosenBackendIdBySeq(replicationNum, table.getLocation());
} catch (DdlException ex) {
throw new DdlException(String.format("%s, table=%s, default_replication_num=%d",
ex.getMessage(), table.getName(), Config.default_replication_num));
throw new DdlException(String.format(
"%s, table=%s, replication_num=%d, default_replication_num=%d",
ex.getMessage(), table.getName(), replicationNum, Config.default_replication_num));
}
}
backendsPerBucketSeq.add(chosenBackendIds);
Expand Down

0 comments on commit 2310671

Please sign in to comment.