X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2a6c5ce52acb820ea198f6c97cfbe0060219ed4f..6051369d9427154f912e8affc417f20a26a0eb95:/examples/cpp/comm-failure/s4u-comm-failure.tesh?ds=sidebyside diff --git a/examples/cpp/comm-failure/s4u-comm-failure.tesh b/examples/cpp/comm-failure/s4u-comm-failure.tesh index c0b12090f4..8a5887156d 100644 --- a/examples/cpp/comm-failure/s4u-comm-failure.tesh +++ b/examples/cpp/comm-failure/s4u-comm-failure.tesh @@ -1,19 +1,17 @@ #!/usr/bin/env tesh $ ${bindir:=.}/s4u-comm-failure "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n" -> [ 0.000000] (4:LinkKiller@Host1) LinkKiller sleeping 10 seconds... > [ 0.000000] (2:Receiver@Host2) Receiver posting a receive... > [ 0.000000] (3:Receiver@Host3) Receiver posting a receive... > [ 0.000000] (1:Sender@Host1) Initiating asynchronous send to mailbox2 > [ 0.000000] (1:Sender@Host1) Initiating asynchronous send to mailbox3 > [ 0.000000] (1:Sender@Host1) Calling wait_any.. -> [ 10.000000] (4:LinkKiller@Host1) LinkKiller turning off link linkto2 -> [ 10.000000] (4:LinkKiller@Host1) LinkKiller killed. exiting +> [ 10.000000] (4:LinkKiller@Host1) Turning off link 'linkto2' > [ 10.000000] (2:Receiver@Host2) Receiver has experience a network failure exception > [ 10.000000] (1:Sender@Host1) Sender has experienced a network failure exception, so it knows that something went wrong -> [ 10.000000] (1:Sender@Host1) Now it needs to figure out which of the two comms failed by looking at their state -> [ 10.000000] (1:Sender@Host1) Comm to mailbox2 has state: FAILED -> [ 10.000000] (1:Sender@Host1) Comm to mailbox3 has state: STARTED +> [ 10.000000] (1:Sender@Host1) Now it needs to figure out which of the two comms failed by looking at their state: +> [ 10.000000] (1:Sender@Host1) Comm to mailbox2 has state: FAILED +> [ 10.000000] (1:Sender@Host1) Comm to mailbox3 has state: STARTED > [ 10.000000] (1:Sender@Host1) Waiting on a FAILED comm raises an exception: 'Cannot wait for a failed communication' > [ 10.000000] (1:Sender@Host1) Wait for remaining comm, just to be nice -> [ 16.494845] (3:Receiver@Host3) Receiver has received successfully! +> [ 17.319588] (3:Receiver@Host3) Receiver has received successfully!