Closed gy2411 closed 2 months ago
seems that a resync operation was in flight when the erase process started
https://github.com/ydb-platform/nbs/blob/main/cloud/blockstore/libs/storage/service/service_actor_destroy.cpp - this code doesn't ask the volume to stop all operations before destruction so such a race looks possible - if ModifyVolumeResponse comes before VolumeActor is killed, the erase process may start before all inflight volume operations are finished
I see two solutions here:
The timeline is the following:
1) DestroyVolume request was sent
2) DestroyVolume request completes
3) Secure erase for one of the devices of this volume starts
4) Several errors like this occured:
Note that here ClientId=migration and io mode is read.
5) Secure erase for this device starts again and then finishes.
Logs: DiskAgentIoDuringSecureErase_logs.txt
Looks like a bug. Need to find the reason of this and fix it.