fix: obsolete wal entires while opening a migrated region (#4993)

* fix: delete obsolete wal entrie while opening a migrated region

* chore: add logs

* chore: rust fmt

* fix: fix fuzz test
This commit is contained in:
Weny Xu
2024-11-15 18:55:22 +08:00
committed by GitHub
parent 08f59008cc
commit 4b263ef1cc
5 changed files with 161 additions and 101 deletions

View File

@@ -74,6 +74,10 @@ impl HandlerContext {
// Ignores flush request
if !writable {
warn!(
"Region: {region_id} is not writable, flush_timeout: {:?}",
flush_timeout
);
return self.downgrade_to_follower_gracefully(region_id).await;
}