SDP-563

ashaikh
Open
SDP daily_checkpoint.sh script fails on forwarding replicas

The daily_checkpoint.sh script fails on forwarding replicas. It tries to replay journals to the offline_db that do not exist.

$ /p4/common/bin/daily_checkpoint.sh 1
Offline journal replay failed. Abort!

$ cat /p4/1/logs/checkpoint.log
Fri Oct 30 05:07:00 UTC 2020 /p4/common/bin/daily_checkpoint.sh: Start p4_1 Checkpoint
Fri Oct 30 05:07:01 UTC 2020 /p4/common/bin/daily_checkpoint.sh: Offline journal number is: 22
Fri Oct 30 05:07:01 UTC 2020 /p4/common/bin/daily_checkpoint.sh: Skipping call to truncate_journal() on edge or replica server.
Fri Oct 30 05:07:01 UTC 2020 /p4/common/bin/daily_checkpoint.sh: Replay any unreplayed journals to the offline database.
Fri Oct 30 05:07:01 UTC 2020 /p4/common/bin/daily_checkpoint.sh: Replay journal /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.22 to offline db.
Recovering from /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.22...

real    0m0.027s
user    0m0.004s
sys     0m0.013s
Fri Oct 30 05:07:01 UTC 2020 /p4/common/bin/daily_checkpoint.sh: Replay journal /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.23 to offline db.
Recovering from /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.23...

real    0m0.023s
user    0m0.004s
sys     0m0.012s
Fri Oct 30 05:07:01 UTC 2020 /p4/common/bin/daily_checkpoint.sh: Replay journal /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.24 to offline db.
Recovering from /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.24...
Perforce server error:
        open for read: /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.24: No such file or directory
        open for read: /depotdata/p4/1/checkpoints.replica.1/p4_1.replica.1.jnl.24: No such file or directory

real    0m0.007s
user    0m0.003s
sys     0m0.004s
Fri Oct 30 05:07:01 UTC 2020 /p4/common/bin/daily_checkpoint.sh: ERROR!!! - replica p4_1 /p4/common/bin/daily_checkpoint.sh: Offline journal replay failed. Abort!

$ ls -al /p4/1/checkpoints.replica.1/
total 40
drwx------. 2 p4 p4  267 Oct 30 05:08 .
drwx------. 6 p4 p4   81 Oct 30 03:44 ..
-r--r-----. 1 p4 p4 2838 Oct 30 04:54 p4_1.replica.1.jnl.15
-r--r-----. 1 p4 p4 4126 Oct 30 04:55 p4_1.replica.1.jnl.16
-r--r-----. 1 p4 p4 1940 Oct 30 04:55 p4_1.replica.1.jnl.17
-r--r-----. 1 p4 p4 1940 Oct 30 04:55 p4_1.replica.1.jnl.18
-r--r-----. 1 p4 p4 1940 Oct 30 04:55 p4_1.replica.1.jnl.19
-r--r-----. 1 p4 p4 2838 Oct 30 04:56 p4_1.replica.1.jnl.20
-r--r-----. 1 p4 p4 2838 Oct 30 04:57 p4_1.replica.1.jnl.21
-r--r-----. 1 p4 p4 3228 Oct 30 05:06 p4_1.replica.1.jnl.22
-r--r-----. 1 p4 p4 1940 Oct 30 05:06 p4_1.replica.1.jnl.23
Status
Open
Project
perforce-software-sdp
Severity
C
Reported By
ashaikh
Reported Date
Modified By
tom_tyler
Modified Date
Owned By
ashaikh
Dev Notes
Changed from 'Bug' to 'Feature'. See discussion:
https://swarm.workshop.perforce.com/jobs/SDP-563#comments
Component
core-unix
Type
Feature