Commit aa87ac9
replicaset: soften name validation
During upgrade to Tarantool 3.0.0 there's a time, when instance name
have not been set yet. If vshard strictly validates names on connection,
it leads to the cluster unavailability by the time, when all names are
configured.
This commit softens the check and allows name to be nil, when instance
UUID is specified in configuration, only UUID is validated in such case.
In conclusion we have the following checks on connection:
1. UUID is validated in the following cases:
a. When `identification_mode` is `uuid_as_key`
b. When `identification_mode` is `name_as_key` and replica.uuid
is specified
2. Instance name is validated only when `identification_mode` is
`name_as_key` and can work in the following modes:
a. Strict validation (nil instance name is not allowed), when
replica.uuid is not specified.
b. Soft validation (nil instance name is allowed), when
replica.uuid is specified.
Follow-up #426
NO_DOC=internal1 parent 6364056 commit aa87ac9
File tree
2 files changed
+19
-5
lines changed- test/replicaset-luatest
- vshard
2 files changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
277 | 288 | | |
278 | 289 | | |
279 | | - | |
280 | 290 | | |
281 | 291 | | |
282 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | | - | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | | - | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| |||
0 commit comments