Source:
<code>private void clearTables() { CorfuStoreMetadata.Timestamp timestamp = logReplicationMetadataManager.getTimestamp(); long persistSiteConfigID = logReplicationMetadataManager.query(timestamp, LogReplicationMetadataManager.LogReplicationMetadataType.TOPOLOGY_CONFIG_ID); long persistSnapStart = logReplicationMetadataManager.query(timestamp, LogReplicationMetadataManager.LogReplicationMetadataType.LAST_SNAPSHOT_STARTED); long persitSeqNum = logReplicationMetadataManager.query(timestamp, LogReplicationMetadataManager.LogReplicationMetadataType.LAST_SNAPSHOT_SEQ_NUM); if (topologyConfigId != persistSiteConfigID || srcGlobalSnapshot != persistSnapStart || <START> (persitSeqNum + 1)!= recvSeq) { <END> log.warn("Skip current topologyConfigId " + topologyConfigId + " srcGlobalSnapshot " + srcGlobalSnapshot + " currentSeqNum " + recvSeq + " persistedMetadata " + logReplicationMetadataManager.getTopologyConfigId() + " startSnapshot " + logReplicationMetadataManager.getLastSnapStartTimestamp() + " lastSnapSeqNum " + logReplicationMetadataManager.getLastSnapSeqNum()); return; } TxBuilder txBuilder = logReplicationMetadataManager.getTxBuilder(); logReplicationMetadataManager.appendUpdate(txBuilder, LogReplicationMetadataManager.LogReplicationMetadataType.TOPOLOGY_CONFIG_ID, topologyConfigId); for (UUID streamID : streamViewMap.keySet()) { UUID usedStreamID = streamID; if (phase == Phase.TRANSFER_PHASE) { usedStreamID = uuidMap.get(streamID); } SMREntry entry = new SMREntry("clear", new Array[0], Serializers.PRIMITIVE); txBuilder.logUpdate(usedStreamID, entry); } txBuilder.commit(timestamp); }</code><technical_language>replace this format logger concatenation. some point rename local variables site->topology</technical_language>

Target:
private void clearTables() { CorfuStoreMetadata.Timestamp timestamp = logReplicationMetadataManager.getTimestamp(); long persistedTopologyConfigId = logReplicationMetadataManager.query(timestamp, LogReplicationMetadataManager.LogReplicationMetadataType.TOPOLOGY_CONFIG_ID); long persistedSnapshotStart = logReplicationMetadataManager.query(timestamp, LogReplicationMetadataManager.LogReplicationMetadataType.LAST_SNAPSHOT_STARTED); long persistedSequenceNum = logReplicationMetadataManager.query(timestamp, LogReplicationMetadataManager.LogReplicationMetadataType.LAST_SNAPSHOT_SEQ_NUM); if (topologyConfigId != persistedTopologyConfigId || srcGlobalSnapshot != persistedSnapshotStart || (persistedSequenceNum + 1)!= recvSeq) { log.warn("Skip clearing shadow tables. Current topologyConfigId={} srcGlobalSnapshot={}, currentSeqNum={}, " + "persistedTopologyConfigId={}, persistedSnapshotStart={}, persistedLastSequenceNum={}", topologyConfigId, srcGlobalSnapshot, recvSeq, persistedTopologyConfigId, persistedSnapshotStart, persistedSequenceNum); return; } TxBuilder txBuilder = logReplicationMetadataManager.getTxBuilder(); logReplicationMetadataManager.appendUpdate(txBuilder, LogReplicationMetadataManager.LogReplicationMetadataType.TOPOLOGY_CONFIG_ID, topologyConfigId); for (UUID streamID : streamViewMap.keySet()) { UUID usedStreamID = streamID; if (phase == Phase.TRANSFER_PHASE) { usedStreamID = uuidMap.get(streamID); } SMREntry entry = new SMREntry("clear", new Array[0], Serializers.PRIMITIVE); txBuilder.logUpdate(usedStreamID, entry); } txBuilder.commit(timestamp); }