Commit 9d24352
committed
Validate scope in Session.wait_for_schema_agreement
The docstring promised ValueError for an invalid scope, but no check
existed: an unknown value silently fell through to cluster-wide
behaviour. Coerce/validate the argument against SchemaAgreementScope up
front (also accepting the plain string values) and raise a clear
ValueError listing the valid scopes.1 parent da4d3c4 commit 9d24352
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3482 | 3482 | | |
3483 | 3483 | | |
3484 | 3484 | | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
3485 | 3493 | | |
3486 | 3494 | | |
3487 | 3495 | | |
| |||
5325 | 5333 | | |
5326 | 5334 | | |
5327 | 5335 | | |
5328 | | - | |
| 5336 | + | |
5329 | 5337 | | |
5330 | 5338 | | |
5331 | 5339 | | |
| |||
0 commit comments