@@ -988,7 +988,7 @@ void MtmAbortTransaction(MtmTransState* ts)
988
988
989
989
void MtmRecoveryCompleted (void )
990
990
{
991
- elog (WARNING ,"Recovery of node %d is completed" ,MtmNodeId );
991
+ elog (NOTICE ,"Recovery of node %d is completed" ,MtmNodeId );
992
992
MtmLock (LW_EXCLUSIVE );
993
993
Mtm -> recoverySlot = 0 ;
994
994
BIT_CLEAR (Mtm -> disabledNodeMask ,MtmNodeId - 1 );
@@ -1071,12 +1071,12 @@ bool MtmRecoveryCaughtUp(int nodeId, XLogRecPtr slotLSN)
1071
1071
XLogRecPtr walLSN = GetXLogInsertRecPtr ();
1072
1072
if (slotLSN == walLSN && Mtm -> nActiveTransactions == 0 ) {
1073
1073
if (BIT_CHECK (Mtm -> nodeLockerMask ,nodeId - 1 )) {
1074
- elog (WARNING ,"Node %d is caught-up" ,nodeId );
1074
+ elog (NOTICE ,"Node %d is caught-up" ,nodeId );
1075
1075
BIT_CLEAR (Mtm -> walSenderLockerMask ,MyWalSnd - WalSndCtl -> walsnds );
1076
1076
BIT_CLEAR (Mtm -> nodeLockerMask ,nodeId - 1 );
1077
1077
Mtm -> nLockers -= 1 ;
1078
1078
}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 );
1080
1080
/* We are lucky: caugth-up without locking cluster! */
1081
1081
}
1082
1082
BIT_CLEAR (Mtm -> disabledNodeMask ,nodeId - 1 );
@@ -1091,7 +1091,7 @@ bool MtmRecoveryCaughtUp(int nodeId, XLogRecPtr slotLSN)
1091
1091
* We have to maintain two bitmasks: one is marking wal sender, another - correspondent nodes.
1092
1092
* Is there some better way to establish mapping between nodes ad WAL-seconder?
1093
1093
*/
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" ,
1095
1095
nodeId ,slotLSN ,walLSN ,Mtm -> nActiveTransactions );
1096
1096
Assert (MyWalSnd != NULL );/* This function is called by WAL-sender, so it should not be NULL */
1097
1097
BIT_SET (Mtm -> nodeLockerMask ,nodeId - 1 );
@@ -1108,7 +1108,7 @@ bool MtmRecoveryCaughtUp(int nodeId, XLogRecPtr slotLSN)
1108
1108
void MtmSwitchClusterMode (MtmNodeStatus mode )
1109
1109
{
1110
1110
Mtm -> status = mode ;
1111
- elog (WARNING ,"Switch to %s mode" ,MtmNodeStatusMnem [mode ]);
1111
+ elog (NOTICE ,"Switch to %s mode" ,MtmNodeStatusMnem [mode ]);
1112
1112
/* ??? Something else to do here? */
1113
1113
}
1114
1114
@@ -1136,7 +1136,7 @@ MtmCheckClusterLock()
1136
1136
break ;
1137
1137
}else {
1138
1138
/* recovered replica catched up with master */
1139
- elog (WARNING ,"WAL-sender %d complete recovery" ,i );
1139
+ elog (NOTICE ,"WAL-sender %d complete recovery" ,i );
1140
1140
BIT_CLEAR (Mtm -> walSenderLockerMask ,i );
1141
1141
}
1142
1142
}
@@ -1155,7 +1155,7 @@ MtmCheckClusterLock()
1155
1155
}else {
1156
1156
/* All lockers are synchronized their logs */
1157
1157
/* 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 );
1159
1159
Assert (Mtm -> walSenderLockerMask == 0 );
1160
1160
Assert ((Mtm -> nodeLockerMask & Mtm -> disabledNodeMask )== Mtm -> nodeLockerMask );
1161
1161
Mtm -> disabledNodeMask &= ~Mtm -> nodeLockerMask ;
@@ -1215,7 +1215,7 @@ bool MtmRefreshClusterStatus(bool nowait)
1215
1215
1216
1216
clique = MtmFindMaxClique (matrix ,MtmNodes ,& clique_size );
1217
1217
if (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 );
1219
1219
MtmLock (LW_EXCLUSIVE );
1220
1220
mask = ~clique & (((nodemask_t )1 <<MtmNodes )- 1 )& ~Mtm -> disabledNodeMask ;/* new disabled nodes mask */
1221
1221
for (i = 0 ;mask != 0 ;i ++ ,mask >>=1 ) {
@@ -1243,7 +1243,7 @@ bool MtmRefreshClusterStatus(bool nowait)
1243
1243
MtmSwitchClusterMode (MTM_RECOVERY );
1244
1244
}
1245
1245
}else {
1246
- elog (WARNING ,"Clique %lx has no quorum" , (long )clique );
1246
+ elog (NOTICE ,"Clique %lx has no quorum" , (long )clique );
1247
1247
MtmSwitchClusterMode (MTM_IN_MINORITY );
1248
1248
}
1249
1249
return true;
@@ -1258,7 +1258,7 @@ void MtmCheckQuorum(void)
1258
1258
}
1259
1259
}else {
1260
1260
if (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 );
1262
1262
MtmSwitchClusterMode (MTM_ONLINE );
1263
1263
}
1264
1264
}
@@ -1285,7 +1285,7 @@ void MtmOnNodeDisconnect(int nodeId)
1285
1285
for (ts = Mtm -> transListHead ;ts != NULL ;ts = ts -> next ) {
1286
1286
if (!ts -> votingCompleted ) {
1287
1287
if (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 );
1289
1289
MtmAbortTransaction (ts );
1290
1290
}
1291
1291
MtmWakeUpBackend (ts );
@@ -1844,7 +1844,7 @@ MtmSlotMode MtmReceiverSlotMode(int nodeId)
1844
1844
recovery = true;
1845
1845
if (Mtm -> recoverySlot == 0 || Mtm -> recoverySlot == nodeId ) {
1846
1846
/* Choose for recovery first available slot */
1847
- elog (WARNING ,"Start recovery from node %d" ,nodeId );
1847
+ elog (NOTICE ,"Start recovery from node %d" ,nodeId );
1848
1848
Mtm -> recoverySlot = nodeId ;
1849
1849
return SLOT_OPEN_EXISTED ;
1850
1850
}
@@ -1853,7 +1853,7 @@ MtmSlotMode MtmReceiverSlotMode(int nodeId)
1853
1853
MtmSleep (STATUS_POLL_DELAY );
1854
1854
}
1855
1855
if (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 );
1857
1857
}else {
1858
1858
MTM_INFO ("%d: Reuse replication slot for node %d\n" ,MyProcPid ,nodeId );
1859
1859
}
@@ -1907,7 +1907,7 @@ static void
1907
1907
MtmOnProcExit (int code ,Datum arg )
1908
1908
{
1909
1909
if (MtmReplicationNodeId >=0 ) {
1910
- elog (WARNING ,"WAL-sender to %d is terminated" ,MtmReplicationNodeId );
1910
+ elog (NOTICE ,"WAL-sender to %d is terminated" ,MtmReplicationNodeId );
1911
1911
MtmOnNodeDisconnect (MtmReplicationNodeId );
1912
1912
}
1913
1913
}
@@ -1938,15 +1938,15 @@ MtmReplicationStartupHook(struct PGLogicalStartupHookArgs* args)
1938
1938
}
1939
1939
MtmLock (LW_EXCLUSIVE );
1940
1940
if (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 );
1942
1942
if (!BIT_CHECK (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 )) {
1943
1943
BIT_SET (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 );
1944
1944
Mtm -> nNodes -= 1 ;
1945
1945
MtmCheckQuorum ();
1946
1946
}
1947
1947
}else if (BIT_CHECK (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 )) {
1948
1948
if (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 );
1950
1950
BIT_CLEAR (Mtm -> disabledNodeMask ,MtmReplicationNodeId - 1 );
1951
1951
Mtm -> nNodes += 1 ;
1952
1952
MtmCheckQuorum ();
@@ -1964,7 +1964,7 @@ static void
1964
1964
MtmReplicationShutdownHook (struct PGLogicalShutdownHookArgs * args )
1965
1965
{
1966
1966
if (MtmReplicationNodeId >=0 ) {
1967
- elog (WARNING ,"Logical replication to node %d is stopped" ,MtmReplicationNodeId );
1967
+ elog (NOTICE ,"Logical replication to node %d is stopped" ,MtmReplicationNodeId );
1968
1968
MtmOnNodeDisconnect (MtmReplicationNodeId );
1969
1969
MtmReplicationNodeId = -1 ;/* defuse on_proc_exit hook */
1970
1970
}
@@ -2411,7 +2411,6 @@ static bool MtmTwoPhaseCommit(MtmCurrentTrans* x)
2411
2411
if (x -> isDistributed && x -> containsDML ) {
2412
2412
MtmGenerateGid (x -> gid );
2413
2413
if (!x -> isTransactionBlock ) {
2414
- /* elog(WARNING, "Start transaction block for %s", x->gid); */
2415
2414
BeginTransactionBlock ();
2416
2415
CommitTransactionCommand ();
2417
2416
StartTransactionCommand ();