feat: make uuids truly random
Summary
-
feat: make uuids truly unique
Up to this patch
instance_uuidandreplicaset_uuidwere generated using name-based UUID v3. So all instances namedi1in all clusters had the same UUID.With this patch UUIDs become random v4. Particular UUID values are generated in two locations:
-
start_boot(src/lib.rs) -
handle_join_request_and_wait->build_instance(src/rpc/join.rs)
Function
Instance::new()is removed in favor of explicit struct construction. -
-
test: refactor struct Instance inner tests
The main purpose is to reduce the usage of
Instance::new()function. It's going to be removed soon. No behavior changes are introduced yet.
- Close #390 (closed)
- Cherry-pick to: none
- Docs follow-up: not necessary
Edited by Yaroslav Dynnikov