@@ -988,7 +988,7 @@ void MtmAbortTransaction(MtmTransState* ts)
988988
989989void MtmRecoveryCompleted (void )
990990{
991- elog (WARNING ,"Recovery of node %d is completed" ,MtmNodeId );
991+ elog (NOTICE ,"Recovery of node %d is completed" ,MtmNodeId );
992992MtmLock (LW_EXCLUSIVE );
993993Mtm -> recoverySlot = 0 ;
994994BIT_CLEAR (Mtm -> disabledNodeMask ,MtmNodeId - 1 );
@@ -1071,12 +1071,12 @@ bool MtmRecoveryCaughtUp(int nodeId, XLogRecPtr slotLSN)
10711071XLogRecPtr walLSN = GetXLogInsertRecPtr ();
10721072if (slotLSN == walLSN && Mtm -> nActiveTransactions == 0 ) {
10731073if (BIT_CHECK (Mtm -> nodeLockerMask ,nodeId - 1 )) {
1074- elog (WARNING ,"Node %d is caught-up" ,nodeId );
1074+ elog (NOTICE ,"Node %d is caught-up" ,nodeId );
10751075BIT_CLEAR (Mtm -> walSenderLockerMask ,MyWalSnd - WalSndCtl -> walsnds );
10761076BIT_CLEAR (Mtm -> nodeLockerMask ,nodeId - 1 );
10771077Mtm -> nLockers -= 1 ;
10781078}else {
1079- elog (WARNING , "Node %d is caugth-up without locking cluster" ,nodeId );
1079+ elog (NOTICE , "%d: dode %d is caugth-up without locking cluster", MyProcPid ,nodeId );
10801080/* We are lucky: caugth-up without locking cluster! */
10811081}
10821082BIT_CLEAR (Mtm -> disabledNodeMask ,nodeId - 1 );
@@ -1091,7 +1091,7 @@ bool MtmRecoveryCaughtUp(int nodeId, XLogRecPtr slotLSN)
10911091 * We have to maintain two bitmasks: one is marking wal sender, another - correspondent nodes.
10921092 * Is there some better way to establish mapping between nodes ad WAL-seconder?
10931093 */
1094- elog (WARNING ,"Node %d is almost caught-up: slot position %lx, WAL position %lx, active transactions %d" ,
1094+ elog (NOTICE ,"Node %d is almost caught-up: slot position %lx, WAL position %lx, active transactions %d" ,
10951095nodeId ,slotLSN ,walLSN ,Mtm -> nActiveTransactions );
10961096Assert (MyWalSnd != NULL );/* This function is called by WAL-sender, so it should not be NULL */
10971097BIT_SET (Mtm -> nodeLockerMask ,nodeId - 1 );
@@ -1108,7 +1108,7 @@ bool MtmRecoveryCaughtUp(int nodeId, XLogRecPtr slotLSN)
11081108void MtmSwitchClusterMode (MtmNodeStatus mode )
11091109{
11101110Mtm -> status = mode ;
1111- elog (WARNING ,"Switch to %s mode" ,MtmNodeStatusMnem [mode ]);
1111+ elog (NOTICE ,"Switch to %s mode" ,MtmNodeStatusMnem [mode ]);
11121112/* ??? Something else to do here? */
11131113}
11141114
@@ -1136,7 +1136,7 @@ MtmCheckClusterLock()
11361136break ;
11371137}else {
11381138/* recovered replica catched up with master */
1139- elog (WARNING ,"WAL-sender %d complete recovery" ,i );
1139+ elog (NOTICE ,"WAL-sender %d complete recovery" ,i );
11401140BIT_CLEAR (Mtm -> walSenderLockerMask ,i );
11411141}
11421142}
@@ -1155,7 +1155,7 @@ MtmCheckClusterLock()
11551155}else {
11561156/* All lockers are synchronized their logs */
11571157/* Remove lock and mark them as receovered */
1158- elog (WARNING ,"Complete recovery of %d nodes (node mask %lx)" ,Mtm -> nLockers , (long )Mtm -> nodeLockerMask );
1158+ elog (NOTICE ,"Complete recovery of %d nodes (node mask %lx)" ,Mtm -> nLockers , (long )Mtm -> nodeLockerMask );
11591159Assert (Mtm -> walSenderLockerMask == 0 );
11601160Assert ((Mtm -> nodeLockerMask & Mtm -> disabledNodeMask )== Mtm -> nodeLockerMask );
11611161Mtm -> disabledNodeMask &= ~Mtm -> nodeLockerMask ;
@@ -1215,7 +1215,7 @@ bool MtmRefreshClusterStatus(bool nowait)
12151215
12161216clique = MtmFindMaxClique (matrix ,MtmNodes ,& clique_size );
12171217if (clique_size >=MtmNodes /2 + 1 ) {/* have quorum */
1218- elog (WARNING ,"Find clique %lx, disabledNodeMask %lx" , (long )clique , (long )Mtm -> disabledNodeMask );
1218+ elog (NOTICE ,"Find clique %lx, disabledNodeMask %lx" , (long )clique , (long )Mtm -> disabledNodeMask );
12191219MtmLock (LW_EXCLUSIVE );
12201220mask = ~clique & (((nodemask_t )1 <<MtmNodes )- 1 )& ~Mtm -> disabledNodeMask ;/* new disabled nodes mask */
12211221for (i = 0 ;mask != 0 ;i ++ ,mask >>=1 ) {
@@ -1243,7 +1243,7 @@ bool MtmRefreshClusterStatus(bool nowait)
12431243MtmSwitchClusterMode (MTM_RECOVERY );
12441244}
12451245}else {
1246- elog (WARNING ,"Clique %lx has no quorum" , (long )clique );
1246+ elog (NOTICE ,"Clique %lx has no quorum" , (long )clique );
12471247MtmSwitchClusterMode (MTM_IN_MINORITY );
12481248}
12491249return true;
@@ -1258,7 +1258,7 @@ void MtmCheckQuorum(void)
12581258}
12591259}else {
12601260if (Mtm -> status == MTM_IN_MINORITY ) {
1261- elog (WARNING ,"Node is in majority: dissbled mask %lx" , (long )Mtm -> disabledNodeMask );
1261+ elog (NOTICE ,"Node is in majority: dissbled mask %lx" , (long )Mtm -> disabledNodeMask );
12621262MtmSwitchClusterMode (MTM_ONLINE );
12631263}
12641264}
@@ -1285,7 +1285,7 @@ void MtmOnNodeDisconnect(int nodeId)
12851285for (ts = Mtm -> transListHead ;ts != NULL ;ts = ts -> next ) {
12861286if (!ts -> votingCompleted ) {
12871287if (ts -> status != TRANSACTION_STATUS_ABORTED ) {
1288- elog (WARNING ,"Rollback active transaction %d:%d" ,ts -> gtid .node ,ts -> gtid .xid );
1288+ elog (NOTICE ,"Rollback active transaction %d:%d" ,ts -> gtid .node ,ts -> gtid .xid );
12891289MtmAbortTransaction (ts );
12901290}
12911291MtmWakeUpBackend (ts );
@@ -1844,7 +1844,7 @@ MtmSlotMode MtmReceiverSlotMode(int nodeId)
18441844recovery = true;
18451845if (Mtm -> recoverySlot == 0 || Mtm -> recoverySlot == nodeId ) {
18461846/* Choose for recovery first available slot */
1847- elog (WARNING ,"Start recovery from node %d" ,nodeId );
1847+ elog (NOTICE ,"Start recovery from node %d" ,nodeId );
18481848Mtm -> recoverySlot = nodeId ;
18491849return SLOT_OPEN_EXISTED ;
18501850}
@@ -1853,7 +1853,7 @@ MtmSlotMode MtmReceiverSlotMode(int nodeId)
18531853MtmSleep (STATUS_POLL_DELAY );
18541854}
18551855if (recovery ) {
1856- elog (WARNING ,"Recreate replication slot for node %d after end of recovery" ,nodeId );
1856+ elog (NOTICE ,"Recreate replication slot for node %d after end of recovery" ,nodeId );
18571857}else {
18581858MTM_INFO ("%d: Reuse replication slot for node %d\n" ,MyProcPid ,nodeId );
18591859}
@@ -1907,7 +1907,7 @@ static void
19071907MtmOnProcExit (int code ,Datum arg )
19081908{
19091909if (MtmReplicationNodeId >=0 ) {
1910- elog (WARNING ,"WAL-sender to %d is terminated" ,MtmReplicationNodeId );
1910+ elog (NOTICE ,"WAL-sender to %d is terminated" ,MtmReplicationNodeId );
19111911MtmOnNodeDisconnect (MtmReplicationNodeId );
19121912}
19131913}
@@ -1938,15 +1938,15 @@ MtmReplicationStartupHook(struct PGLogicalStartupHookArgs* args)
19381938}
19391939MtmLock (LW_EXCLUSIVE );
19401940if (MtmIsRecoverySession ) {
1941- elog (WARNING ,"%d: Node %d start recovery of node %d" ,MyProcPid ,MtmNodeId ,MtmReplicationNodeId );
1941+ elog (NOTICE ,"%d: Node %d start recovery of node %d" ,MyProcPid ,MtmNodeId ,MtmReplicationNodeId );
19421942if (!BIT_CHECK (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 )) {
19431943BIT_SET (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 );
19441944Mtm -> nNodes -= 1 ;
19451945MtmCheckQuorum ();
19461946}
19471947}else if (BIT_CHECK (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 )) {
19481948if (recoveryCompleted ) {
1949- elog (WARNING ,"Node %d consider that recovery of node %d is completed: start normal replication" ,MtmNodeId ,MtmReplicationNodeId );
1949+ elog (NOTICE ,"Node %d consider that recovery of node %d is completed: start normal replication" ,MtmNodeId ,MtmReplicationNodeId );
19501950BIT_CLEAR (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 );
19511951Mtm -> nNodes += 1 ;
19521952MtmCheckQuorum ();
@@ -1964,7 +1964,7 @@ static void
19641964MtmReplicationShutdownHook (struct PGLogicalShutdownHookArgs * args )
19651965{
19661966if (MtmReplicationNodeId >=0 ) {
1967- elog (WARNING ,"Logical replication to node %d is stopped" ,MtmReplicationNodeId );
1967+ elog (NOTICE ,"Logical replication to node %d is stopped" ,MtmReplicationNodeId );
19681968MtmOnNodeDisconnect (MtmReplicationNodeId );
19691969MtmReplicationNodeId = -1 ;/* defuse on_proc_exit hook */
19701970}
@@ -2411,7 +2411,6 @@ static bool MtmTwoPhaseCommit(MtmCurrentTrans* x)
24112411if (x -> isDistributed && x -> containsDML ) {
24122412MtmGenerateGid (x -> gid );
24132413if (!x -> isTransactionBlock ) {
2414- /* elog(WARNING, "Start transaction block for %s", x->gid); */
24152414BeginTransactionBlock ();
24162415CommitTransactionCommand ();
24172416StartTransactionCommand ();