You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be seen that the fields exclude_null and fieldno have different order on different hosts.
Since this is used to get the hash and determine if the schema needs to be reloaded, we may get a false schema mismatch problem:
While working on the task, it was discovered that
msgpack
does not guarantee the order of elements when serializingmap
.Input for example:
Serializing output on different hosts:
It can be seen that the fields
exclude_null
andfieldno
have different order on different hosts.Since this is used to get the hash and determine if the schema needs to be reloaded, we may get a false schema mismatch problem:
crud/crud/common/schema.lua
Line 139 in 781ef16
It should also be noted that a similar calculation approach is used in other places:
crud/crud/common/sharding/utils.lua
Line 31 in 781ef16
The text was updated successfully, but these errors were encountered: