wrong variables used in recreate_offline_db_files
When calling 'recreate_offline_db_files' as part of the daily backup for an Edge Server on Linux, the wrong variables are used. The function contains the following:
if [[ "$SERVERID" == "$P4MASTER_ID" ]]; then
if [[ -z "$(find "${CHECKPOINTS}/" -maxdepth 1 -type f -name "${P4SERVER}.ckp.*.gz" -printf 1 -quit)" ]]; then
ckp_complete
die "No checkpoints found in $CHECKPOINTS. Consider running 'live_checkpoint.sh $SDP_INSTANCE'."
fi
fi
The "@{CHECKPOINTS} should be replaced with "${CheckpointsDir}" and "${P4SERVER}" with "${FilePrefix}". On an edge server, the checkpoint directory is different to that for a commit server. The value of CheckpointDir and FilePrefix are set based on if it’s an edge server or not just prior to the problematic code noted above. The 'mkdirs' configuration file determines the setting of 'MASTER_ID', setting it to the server.id of an edge server.