mirror of https://github.com/citusdata/citus.git
Improve error message if no target nodes found
parent
8cb505d6e1
commit
8f802e488d
|
@ -1523,8 +1523,8 @@ MoveShardsAwayFromDisallowedNodes(RebalanceState *state)
|
|||
if (targetFillState == NULL)
|
||||
{
|
||||
ereport(WARNING, (errmsg(
|
||||
"Not allowed to move shard " UINT64_FORMAT
|
||||
" anywhere from %s:%d",
|
||||
"There is not any node to move shard " UINT64_FORMAT
|
||||
" from %s:%d",
|
||||
disallowedPlacement->shardCost->shardId,
|
||||
disallowedPlacement->fillState->node->workerName,
|
||||
disallowedPlacement->fillState->node->workerPort
|
||||
|
|
|
@ -108,7 +108,7 @@ SELECT unnest(shard_placement_rebalance_array(
|
|||
'{"shardid":4, "nodename":"hostname2"}'
|
||||
]::json[]
|
||||
));
|
||||
WARNING: Not allowed to move shard xxxxx anywhere from hostname2:5432
|
||||
WARNING: There is not any node to move shard xxxxx from hostname2:5432
|
||||
unnest
|
||||
---------------------------------------------------------------------
|
||||
{"updatetype":1,"shardid":2,"sourcename":"hostname1","sourceport":5432,"targetname":"hostname2","targetport":5432}
|
||||
|
|
Loading…
Reference in New Issue