Source:
<code>public BackupStatus backup(BackupPRequest request, StateLockOptions stateLockOptions) throws AlluxioException { AlluxioEvent.BackupRequested.fire(request); boolean delegateBackup; UUID backupId; try (LockResource initiateLock = new LockResource(mBackupInitiateLock)) { if (mBackupTracker.inProgress()) { throw new BackupException("Backup in progress"); } delegateBackup = ServerConfiguration.getBoolean(PropertyKey.MASTER_BACKUP_DELEGATION_ENABLED) && ConfigurationUtils.isHaMode(ServerConfiguration.global()); if (delegateBackup && mBackupWorkerHostNames.size() == 0) { if (request.getOptions().getAllowLeader()) { delegateBackup = false; } else { throw new BackupDelegationException("No master found to delegate backup."); } } mBackupTracker.reset(); mBackupTracker.updateState(BackupState.Initiating); mBackupTracker.updateHostname(NetworkAddressUtils.getLocalHostName((int) ServerConfiguration .global().getMs(PropertyKey.NETWORK_HOST_RESOLUTION_TIMEOUT_MS))); backupId = mBackupTracker.getCurrentStatus().getBackupId(); } <START> AlluxioEvent.BackupStarted.fire(backupId); <END> if (delegateBackup) { if (!scheduleRemoteBackup(backupId, request, stateLockOptions)) { LOG.error("Failed to schedule remote backup."); AlluxioException err = new BackupDelegationException("Failed to delegate the backup."); mBackupTracker.updateError(err); throw err; } } else { scheduleLocalBackup(request, stateLockOptions); } AlluxioEvent.BackupSubmitted.fire(backupId, request, String.format("BackupWorker: %s", (delegateBackup) ? mRemoteBackupConnection : "local")); if (request.getOptions().getRunAsync()) { return new BackupStatus(backupId, BackupState.Initiating); } mBackupTracker.waitUntilFinished(); return mBackupTracker.getStatus(backupId); }</code><technical_language>this a label for id, String.format("backupId: %d", backupId)</technical_language>

Target:
public BackupStatus backup(BackupPRequest request, StateLockOptions stateLockOptions) throws AlluxioException { AlluxioEvent.BackupRequested.fire(new Pair<>("BackupRequest", request)); boolean delegateBackup; UUID backupId; try (LockResource initiateLock = new LockResource(mBackupInitiateLock)) { if (mBackupTracker.inProgress()) { throw new BackupException("Backup in progress"); } delegateBackup = ServerConfiguration.getBoolean(PropertyKey.MASTER_BACKUP_DELEGATION_ENABLED) && ConfigurationUtils.isHaMode(ServerConfiguration.global()); if (delegateBackup && mBackupWorkerHostNames.size() == 0) { if (request.getOptions().getAllowLeader()) { delegateBackup = false; } else { throw new BackupDelegationException("No master found to delegate backup."); } } mBackupTracker.reset(); mBackupTracker.updateState(BackupState.Initiating); mBackupTracker.updateHostname(NetworkAddressUtils.getLocalHostName((int) ServerConfiguration .global().getMs(PropertyKey.NETWORK_HOST_RESOLUTION_TIMEOUT_MS))); backupId = mBackupTracker.getCurrentStatus().getBackupId(); } AlluxioEvent.BackupStarted.fire( new Pair<>("BackupId", backupId), new Pair<>("BackupRequest", request)); if (delegateBackup) { if (!scheduleRemoteBackup(backupId, request, stateLockOptions)) { LOG.error("Failed to schedule remote backup."); AlluxioException err = new BackupDelegationException("Failed to delegate the backup."); mBackupTracker.updateError(err); throw err; } } else { scheduleLocalBackup(request, stateLockOptions); } AlluxioEvent.BackupSubmitted.fire( new Pair<>("BackupId", backupId), new Pair<>("BackupRequest", request), new Pair<>("BackupWorker", (delegateBackup) ? mRemoteBackupConnection : "local")); if (request.getOptions().getRunAsync()) { return new BackupStatus(backupId, BackupState.Initiating); } mBackupTracker.waitUntilFinished(); return mBackupTracker.getStatus(backupId); }