If GTM loses node registration information and returns
GTM_ERRCODE_NODE_NOT_REGISTERED to the coordinator/datanode, restart the
cluster monitor process (by simply exiting with exit code 0). This would ensure
that the cluster monitor re-registers with the GTM and start cleanly.
Per report by Virendra Kumar
continue;
}
}
+ else if (status == GTM_ERRCODE_NODE_NOT_REGISTERED)
+ {
+ /*
+ * If we're not registered on the GTM, it could be because the
+ * GTM is restarted. Just exit and let the cluster monitor be
+ * restarted again.
+ */
+ elog(WARNING, "ClusterMonitor process exiting - node not "
+ "registered on the GTM");
+ proc_exit(0);
+ }
}
else
{