In a later step, you set the userlog extraction starting point to the last checkpoint, but if there are userlogs of running transactions after the last checkpoint, the correct extraction file cannot be generated. To avoid this, be sure to gracefully shut down the primary. This is because it guarantees that a checkpoint will be executed in the event of a normal shutdown and that there will be no more WAL in active transactions.