Commit 1437e68
committed
scylla_node: preserve node SMP across restarts
ScyllaNode.start() was resetting _smp to the default value (2) unless
the test explicitly called ScyllaNode.set_smp(). This caused nodes
started with a different "--smp" value from command lines and then
restarted to lose their previous CPU configuration:
```
cluster.start(jvm_args=["--smp", "1"], wait_for_binary_proto=True)
node1.stop(gently=False)
node1.start(wait_for_binary_proto=True)
```
The last command started a node with --smp=2.
Keep the existing _smp value on restart, and only update it when
explicitly requested (via set_smp() or an explicit --smp override
in start options).
Fixes: https://scylladb.atlassian.net/browse/SCYLLADB-5211 parent d283ed4 commit 1437e68
1 file changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
704 | 708 | | |
705 | 709 | | |
706 | 710 | | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
717 | 719 | | |
718 | 720 | | |
719 | 721 | | |
| |||
0 commit comments