Pavel Solodovnikov
4c351ff260
raft: switch group_id type from uint64_t to utils::UUID
...
Introduce a tagged id struct for `group_id`.
Raft code would want to generate quite a lot of unique
raft groups in the future (e.g. tablets). UUID is designed
exactly for that (e.g. larger capacity than `uint64_t`, obviously,
and also has built-in procedures to generate random ids).
Also, this is a preparation to make "raft group 0" use a random
ID instead of a literal fixed `0` as a group id.
The purpose is that every scylla cluster must have a unique ID
for "raft group 0" since we don't want the nodes from some other
cluster to disrupt the current cluster. This can happen if,
for some reason, a foreign node happens to contact a node in
our cluster.
Tests: unit(dev)
Signed-off-by: Pavel Solodovnikov <pa.solodovnikov@scylladb.com >
Message-Id: <20210429170630.533596-3-pa.solodovnikov@scylladb.com >
2021-05-02 16:39:54 +03:00
..
2021-01-13 11:07:29 +02:00
2021-04-22 15:59:13 +02:00
2020-08-15 20:26:02 +03:00
2021-04-12 16:01:04 +02:00
2020-11-16 22:32:32 -05:00
2021-04-20 21:23:00 +03:00
2020-08-06 15:41:31 +03:00
2021-04-25 11:35:07 +03:00
2021-04-01 12:56:08 +03:00
2021-03-10 19:54:12 +02:00
2021-02-02 09:30:30 +03:00
2020-09-21 16:32:53 +03:00
2021-02-17 13:24:40 +01:00
2021-02-18 11:44:59 +01:00
2020-11-02 18:02:01 +02:00
2021-02-01 19:32:07 +02:00
2020-10-15 19:25:24 +03:00
2021-04-25 11:35:07 +03:00
2021-01-08 14:16:08 +01:00
2020-11-12 12:36:16 +01:00
2021-01-13 11:07:29 +02:00
2021-02-16 23:43:07 +01:00
2021-01-13 11:07:29 +02:00
2020-10-19 15:40:55 -04:00
2021-02-25 17:20:27 +01:00
2021-04-23 17:13:24 +03:00
2020-08-26 20:44:11 +03:00
2021-04-23 17:13:24 +03:00
2020-10-30 08:06:04 +02:00
2020-08-15 20:26:02 +03:00
2020-11-12 12:36:13 +01:00
2021-02-25 17:20:27 +01:00
2021-04-25 11:35:07 +03:00
2021-01-13 11:07:29 +02:00
2021-04-25 11:25:47 +03:00
2021-04-23 17:13:24 +03:00
2021-01-13 16:41:34 +03:00
2021-01-15 18:28:24 +01:00
2020-12-15 16:03:18 +03:00
2021-02-25 17:20:27 +01:00
2021-01-13 11:07:29 +02:00
2021-01-08 14:16:08 +01:00
2021-02-25 17:20:27 +01:00
2021-01-13 11:07:29 +02:00
2021-03-15 13:54:49 +02:00
2021-04-01 10:39:42 +02:00
2021-04-25 11:35:07 +03:00
2021-03-26 14:22:43 +02:00
2021-04-29 11:45:53 +03:00
2021-04-25 11:35:07 +03:00
2021-04-25 11:35:07 +03:00
2021-04-26 15:57:17 +03:00
2021-04-25 11:35:07 +03:00
2021-04-25 11:35:07 +03:00
2021-04-09 12:18:29 +03:00
2021-01-13 11:07:29 +02:00
2021-04-26 15:56:56 +03:00
2021-02-25 17:20:27 +01:00
2021-02-15 20:27:00 +03:00
2021-03-26 20:22:44 +03:00
2021-05-02 16:39:54 +03:00
2020-12-28 18:26:48 +02:00
2021-02-25 17:20:27 +01:00
2021-04-23 17:13:24 +03:00
2021-04-25 11:35:07 +03:00
2021-04-23 17:13:24 +03:00
2021-01-27 17:38:17 +02:00
2021-02-25 17:20:27 +01:00
2020-10-14 16:45:21 +03:00
2021-01-13 16:41:34 +03:00
2021-04-25 11:35:07 +03:00
2020-09-23 20:55:12 +03:00
2021-04-25 11:35:07 +03:00
2021-02-01 16:45:52 +02:00
2021-04-18 14:03:17 +03:00
2021-04-25 11:35:07 +03:00
2020-09-23 20:55:13 +03:00
2021-03-18 11:15:59 +02:00
2021-04-25 11:35:07 +03:00
2021-03-18 11:47:49 -03:00
2020-08-11 10:37:34 +08:00
2021-03-10 21:25:43 -05:00
2020-12-22 10:35:15 +02:00
2020-11-03 21:30:11 +03:00
2021-03-21 09:30:43 +02:00
2021-03-18 12:40:05 +02:00
2021-04-12 16:44:07 +03:00
2021-04-01 10:42:07 +02:00
2020-11-02 16:47:32 +02:00
2021-02-02 13:03:39 +02:00
2021-04-20 21:23:00 +03:00
2020-10-21 11:14:44 +03:00
2021-04-06 17:12:54 +03:00
2021-04-25 11:35:07 +03:00
2020-08-18 14:31:04 +03:00
2020-08-20 14:53:07 +02:00