Skip to content

Commit 097be8b

Browse files
authored
More detailed log when the partition consensus write failed (apache#16193)
1 parent ec47d0a commit 097be8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ private TSStatus consensusWritePartitionResult(ConfigPhysicalPlan plan) {
522522
return getConsensusManager().write(plan);
523523
} catch (ConsensusException e) {
524524
// The allocation might fail due to consensus error
525-
LOGGER.error("Write partition allocation result failed because: {}", status);
525+
LOGGER.error("Write partition allocation result failed because: {}", e.getMessage());
526526
TSStatus res = new TSStatus(TSStatusCode.EXECUTE_STATEMENT_ERROR.getStatusCode());
527527
res.setMessage(e.getMessage());
528528
return res;

0 commit comments

Comments
 (0)