PITR selective restore does not restore users

Description

Restoring a replica set (3 members / PSS / 8.0 - but I think it doesn’t matter) with selective PITR skips the related user. Based on my investigation it seems the user is not present in the temporary collection (pbmRUsers). If the user exists it is deleted by PBM during the restore process.

It works as expected when using standard PITR restore without a selective feature.

How to reproduce (assuming PITR is already running):

  1. Create a collection and a user in the database:

  1. Wait some time for PITR chunks that include inserted data and drop the data/user:

  1. Try to restore using the following command:

Result: somedb.col0 has been restored, but without the user.

Expected result: Collection and the user are restored.

 

If we skip the user drop in step 2. we should see the user is no longer present.

Environment

None

Activity

Details

Assignee

Reporter

Needs QA

Yes

Components

Priority

Smart Checklist

Created March 18, 2025 at 4:07 PM
Updated March 24, 2025 at 11:39 AM