How to handle node crash/restart for unique IDs?

In challenge with unique IDs generator, I just implemented a node which return node ID and local node incrementing counter. This solution may work only if node process is alive during test. But it’s obviously should not work in case of node crash or restart. When I start it with command:

/opt/maelstrom/maelstrom test -w unique-ids --bin ./target --time-limit 30 --rate 1000 --node-count 3 --availability total --nemesis partition

The test completes successfully. How I can crash the node during test to simulate this scenario?

Maelstrom doesn’t test node crashes so you’re safe to use in-memory data structures. It only injects network partitions as a failure mode.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.