protected void advanceToken(RemoteReplicaInfo remoteReplicaInfo, ExchangeMetadataResponse exchangeMetadataResponse) {
    remoteReplicaInfo.setToken(exchangeMetadataResponse.remoteToken);
    remoteReplicaInfo.setLocalLagFromRemoteInBytes(exchangeMetadataResponse.localLagFromRemoteInBytes);
    // reset stored metadata response for this replica so that we send next request for metadata
    remoteReplicaInfo.setExchangeMetadataResponse(new ExchangeMetadataResponse(ServerErrorCode.NoError));
    logReplicationStatus(remoteReplicaInfo, exchangeMetadataResponse);
  }
Advances local token to make progress on replication
@param remoteReplicaInfo Remote replica info object
@param exchangeMetadataResponse Metadata object exchanged between replicas
ambry-replication/src/main/java/com/github/ambry/replication/BackupCheckerThread.java