-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.component/backup-restoreComponent: backup, import, external_storageComponent: backup, import, external_storageseverity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Background
A region becomes leader while a new log backup task is initialized.
Reproduction Timeline
- The log backup endpoint register ranges of the new log backup task to the observers.
1/2. The region becomes pre-candidate, which trigger to sendTask::ModifyObserve(Observe::Stop)to theEndpoint::scheduler.
3/4. The region becomes candidate, which trigger to sendTask::ModifyObserve(Observe::Stop)to theEndpoint::scheduler.
5/6. The region becomes leader, which trigger to sendTask::ModifyObserve(Observe::Start{ObserveId: 191299})to theEndpoint::scheduler.
After the step 6, the Endpoint::scheduler has the followed messages that have not been consumed.
Task::ModifyObserve(Observe::Stop)
Task::ModifyObserve(Observe::Stop)
Task::ModifyObserve(Observe::Start{ObserveId: 191299})
- The initialization of new log backup scan the region and send
Observe::Start{ObserveId:191374}to theObserver::scheduler.
After the step 7, the Observer::scheduler has the followed messages that have not been consumed.
Observe::Start{ObserveId:191374}
- The
Endpointstarts to consumes the above messages in the scheduler, and sends them toObserver::scheduler.
After the step 8, the Observer::scheduler has the followed messages that have not been consumed.
Observe::Start{ObserveId:191374}
Observe::Stop
Observe::Stop
Observe::Start{ObserveId: 191299}
This order causes the region to not be observed with the error stale observe id ObserveId(191299), current id: ObserveId(191374).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.component/backup-restoreComponent: backup, import, external_storageComponent: backup, import, external_storageseverity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
