mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
fix: use remote wal when local wal shutdown (#45753)
issue: #45750 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
eea9c8093d
commit
823c7f7e3e
@ -298,7 +298,7 @@ func shouldUseRemoteWAL(err error) bool {
|
|||||||
if errors.Is(err, registry.ErrNoStreamingNodeDeployed) {
|
if errors.Is(err, registry.ErrNoStreamingNodeDeployed) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// 2. If the wal is not exist at current streaming node.
|
// 2. If the wal is not exist at current streaming node or the local wal is shutdown.
|
||||||
streamingServiceErr := status.AsStreamingError(err)
|
streamingServiceErr := status.AsStreamingError(err)
|
||||||
return streamingServiceErr.IsWrongStreamingNode()
|
return streamingServiceErr.IsWrongStreamingNode() || streamingServiceErr.IsOnShutdown()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user