Force restart cluster monitor process if the GTM restarts
authorPavan Deolasee <pavan.deolasee@gmail.com>
Fri, 31 Aug 2018 09:42:42 +0000 (15:12 +0530)
committerPavan Deolasee <pavan.deolasee@gmail.com>
Thu, 6 Sep 2018 09:57:07 +0000 (15:27 +0530)
commit909be73f40cbf814f35cea5c981a24794bbead5c
tree8439a2ffa36d484fc76e002d0e2f7fdc534e73bd
parenta6cf36a6afe8838dcc3f9dbc44ce10f48209607b
Force restart cluster monitor process if the GTM restarts

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
src/backend/postmaster/clustermon.c