Commit 32f0417
Fix Cassandra41CCMCluster to preserve boolean config values as YAML booleans
The set_configuration_options method was calling str(v) on all values,
converting Python booleans (True) to the string 'True'. ruamel.yaml
then writes this as a quoted YAML string ('True') instead of the
boolean 'true'. When Cassandra's SnakeYAML parser tries to assign a
string to a boolean field in cassandra.yaml, it fails with a type
mismatch, causing Cassandra to refuse to start.
This caused the cluster startup to hang for ~15 min per test module
(CCM's wait_for_binary_proto timeout) even with JDK 11.
Fix: only stringify values for _in_ms and _in_kb keys where a unit
suffix must be appended. For all other keys (booleans, integers,
strings) preserve the original Python type.
Also add timeout-minutes: 120 to tests-cassandra job as a safety net.
Co-authored-by: fruch <340979+fruch@users.noreply.github.com>1 parent 95f0c2a commit 32f0417
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | | - | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
1005 | 1017 | | |
0 commit comments