Fix DataNode processes event out of order (#17440)

The probability is low so very unlikly to reproduce

See also: #15966

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2022-06-08 17:24:07 +08:00 committed by GitHub
parent a0854210b7
commit 4f66bcbb22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,8 @@ func (node *DataNode) StartWatchChannels(ctx context.Context) {
return
}
for _, evt := range event.Events {
go node.handleChannelEvt(evt)
// We need to stay in order until events enqueued
node.handleChannelEvt(evt)
}
}
}