datafuselabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.29k stars 701 forks source link

fix: Respond with `SnapshotMismatch` error instead of internal error #15391

Closed drmingdrmer closed 2 weeks ago

drmingdrmer commented 2 weeks ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

fix: Respond with SnapshotMismatch error instead of internal error

This fix updates OpenRaft to version 0.9.8 to address an issue where, upon receiving a SnapshotMismatch error, the snapshot should be resent from the beginning. This ensures that the leader can correctly reset and reinitiate the snapshot transmission process.

And meta-service should return SnapshotMismatch error instead of returning an internal gRPC error.

Tests

Type of change

Related Issues


This change isโ€‚Reviewable