Skip to content

2.25.1.0-b129

@spolitov spolitov tagged this 04 Jan 12:03
Summary:
In could happen that snapshot expires while being created.
There is bad logic for such scenario.
Because we just switch snapshot to state DELETING, keeping the fact the operation is running.
As result we don't trigger DELETE_ON_TABLET operations for this snapshot.
Also we could mark it as deleted if existing operation finishes.

Fixed by switching from boolean flag running to running_serial.
So we could understand whether callback is invoked for active operation.
Jira: DB-14636

Test Plan: ./yb_build.sh asan -n 20 --gtest_filter --gtest_filter YbAdminSnapshotScheduleTest.DeleteIndexOnRestore

Reviewers: zdrudi

Reviewed By: zdrudi

Subscribers: telgersma, ybase

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D40844
Assets 2
Loading