ivandasch commented on a change in pull request #8142:
URL: https://github.com/apache/ignite/pull/8142#discussion_r469302686
##########
File path: modules/ducktests/tests/ignitetest/services/ignite.py
##########
@@ -100,6 +107,59 @@ def stop_node(self, node, clean_shutdown=True,
timeout_sec=60):
self.thread_dump(node)
raise
+ def stop_nodes_async(self, nodes, delay_ms=0, clean_shutdown=True,
timeout_sec=20, wait_for_stop=False):
+ """
+ Stops the nodes asynchronously.
+ """
+ sig = signal.SIGTERM if clean_shutdown else signal.SIGKILL
+
+ sem = CountDownLatch(len(nodes))
+ time_holder = AtomicValue()
Review comment:
Actually, you can use simple dict here, it is thread-safe (GIL)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]