mirror of https://github.com/citusdata/citus.git
Merge aa6cefacca
into 2148922cb2
commit
c0d51f3c4c
|
@ -370,7 +370,9 @@ master_get_local_first_candidate_nodes(PG_FUNCTION_ARGS)
|
||||||
if (candidateNode == NULL)
|
if (candidateNode == NULL)
|
||||||
{
|
{
|
||||||
ereport(ERROR, (errmsg("could only find %u of %u required nodes",
|
ereport(ERROR, (errmsg("could only find %u of %u required nodes",
|
||||||
currentNodeCount, desiredNodeCount)));
|
currentNodeCount, desiredNodeCount),
|
||||||
|
errhint("If you're running a development cluster, consider running"
|
||||||
|
" SET citus.shard_replication_factor = %u;", currentNodeCount)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -460,7 +462,9 @@ master_get_round_robin_candidate_nodes(PG_FUNCTION_ARGS)
|
||||||
if (candidateNode == NULL)
|
if (candidateNode == NULL)
|
||||||
{
|
{
|
||||||
ereport(ERROR, (errmsg("could only find %u of %u required nodes",
|
ereport(ERROR, (errmsg("could only find %u of %u required nodes",
|
||||||
currentNodeCount, desiredNodeCount)));
|
currentNodeCount, desiredNodeCount),
|
||||||
|
errhint("If you're running a development cluster, consider running"
|
||||||
|
" SET citus.shard_replication_factor = %u;", currentNodeCount)));
|
||||||
}
|
}
|
||||||
|
|
||||||
candidateDatum = WorkerNodeGetDatum(candidateNode, functionContext->tuple_desc);
|
candidateDatum = WorkerNodeGetDatum(candidateNode, functionContext->tuple_desc);
|
||||||
|
|
|
@ -124,7 +124,9 @@ master_create_empty_shard(PG_FUNCTION_ARGS)
|
||||||
if (candidateNode == NULL)
|
if (candidateNode == NULL)
|
||||||
{
|
{
|
||||||
ereport(ERROR, (errmsg("could only find %u of %u possible nodes",
|
ereport(ERROR, (errmsg("could only find %u of %u possible nodes",
|
||||||
candidateNodeCount, attemptableNodeCount)));
|
candidateNodeCount, attemptableNodeCount),
|
||||||
|
errhint("If this is a development cluster, consider running"
|
||||||
|
" SET citus.shard_replication_factor = %u;", candidateNodeCount)));
|
||||||
}
|
}
|
||||||
|
|
||||||
candidateNodeList = lappend(candidateNodeList, candidateNode);
|
candidateNodeList = lappend(candidateNodeList, candidateNode);
|
||||||
|
|
Loading…
Reference in New Issue