()
| 270 | } |
| 271 | |
| 272 | private void randomSnapshotTimer() throws Exception { |
| 273 | var randIndex = Random.getInstance().nextInt(rafts.size()); |
| 274 | var index = 0; |
| 275 | for (var test : rafts.values()) { |
| 276 | if (index++ == randIndex) { |
| 277 | if (test.raft != null) |
| 278 | test.raft.getLogSequence().snapshot(); |
| 279 | return; |
| 280 | } |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | public void runTrace() throws Exception { |
| 285 | // 基本测试 |
nothing calls this directly
no test coverage detected