Skip to content

Commit c384102

Browse files
committed
Merge branch 'hBFT' of https://github.com/joaomlneto/byzzbench into hBFT
2 parents 4f5a4c8 + 2dbfe74 commit c384102

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

simulator/src/main/java/byzzbench/simulator/transport/Transport.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public synchronized void deliverEvent(long eventId) throws Exception {
314314

315315
// if it is a MessageEvent and there is no connectivity between the nodes, drop it
316316
if (e instanceof MessageEvent m && !router.haveConnectivity(m.getSenderId(), m.getRecipientId())) {
317-
log.info("Dropped: " + m.getSenderId() + "->" + m.getRecipientId() + ": " + m.getPayload());
317+
////log.info("Dropped: " + m.getSenderId() + "->" + m.getRecipientId() + ": " + m.getPayload());
318318
m.setStatus(Event.Status.DROPPED);
319319
return;
320320
}
@@ -341,7 +341,7 @@ public synchronized void deliverEvent(long eventId) throws Exception {
341341
}
342342
}
343343

344-
log.info("Delivered " + e);
344+
//log.info("Delivered " + e);
345345
}
346346

347347
/**
@@ -361,7 +361,7 @@ public synchronized void dropEvent(long eventId) {
361361
}
362362
e.setStatus(Event.Status.DROPPED);
363363
this.observers.forEach(o -> o.onEventDropped(e));
364-
log.info("Dropped: " + e);
364+
//log.info("Dropped: " + e);
365365
}
366366

367367
/**
@@ -432,7 +432,7 @@ public synchronized void applyMutation(long eventId, Fault fault) {
432432
this.scenario.getSchedule().appendEvent(mutateMessageEvent);
433433
this.observers.forEach(o -> o.onMessageMutation(mutateMessageEvent.getPayload()));
434434

435-
log.info("Mutated: " + m);
435+
//log.info("Mutated: " + m);
436436
}
437437

438438
public synchronized void applyFault(String faultId) {
@@ -485,7 +485,7 @@ public synchronized long setTimeout(Node node, Runnable runnable,
485485
.build();
486486
this.appendEvent(timeoutEvent);
487487
this.observers.forEach(o -> o.onTimeout(timeoutEvent));
488-
log.info("Timeout set for " + node.getId() + " in " + timeout + "ms: " + timeoutEvent);
488+
//log.info("Timeout set for " + node.getId() + " in " + timeout + "ms: " + timeoutEvent);
489489
return timeoutEvent.getEventId();
490490
}
491491

@@ -503,8 +503,8 @@ public synchronized long setTimeout(Replica replica, Runnable runnable,
503503
this.observers.forEach(o -> o.onTimeout(timeoutEvent));
504504

505505

506-
log.info(description + " timeout set for " + replica.getId() + " in " +
507-
timeout + "ms: " + timeoutEvent);
506+
//log.info(description + " timeout set for " + replica.getId() + " in " +
507+
//timeout + "ms: " + timeoutEvent);
508508
return timeoutEvent.getEventId();
509509
}
510510

@@ -523,8 +523,8 @@ public synchronized long setClientTimeout(String clientId, Runnable runnable,
523523
this.observers.forEach(o -> o.onTimeout(timeoutEvent));
524524

525525

526-
log.info("Timeout set for " + clientId + " in " +
527-
timeout + "ms: " + timeoutEvent);
526+
//log.info("Timeout set for " + clientId + " in " +
527+
//timeout + "ms: " + timeoutEvent);
528528
return timeoutEvent.getEventId();
529529
}
530530

simulator/src/main/resources/application.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ byzzbench:
2323

2424
scheduler:
2525
id: "byzzfuzz" # The ID of the scheduler to use
26-
executionMode: async # async (default, any message delivered) or sync (communication-closure hypothesis, FIFO)
26+
executionMode: sync # async (default, any message delivered) or sync (communication-closure hypothesis, FIFO)
2727
maxDropMessages: 0 # Maximum number of messages to drop per scenario
2828
maxMutateMessages: 0 # Maximum number of messages to mutate per scenario
2929
deliverTimeoutWeight: 1 # The weight for scheduler to trigger a timeout
@@ -35,7 +35,7 @@ byzzbench:
3535
# ByzzFuzz
3636
numRoundsWithProcessFaults: 1
3737
numRoundsWithNetworkFaults: 1
38-
numRoundsWithFaults: 8
38+
numRoundsWithFaults: 2
3939
# Twins
4040
numReplicas: 1
4141
numTwinsPerReplica: 2
@@ -47,6 +47,6 @@ byzzbench:
4747
scheduledFaults:
4848
factories: [ ]
4949
termination: # Success condition for the scenario - terminates it when all conditions are met
50-
minEvents: 500 # check if N events have been scheduled. If so, can terminate
51-
minRounds: 8 # check if N rounds have elapsed. If so, can terminate
50+
minEvents: 100 # check if N events have been scheduled. If so, can terminate
51+
minRounds: 2 # check if N rounds have elapsed. If so, can terminate
5252
samplingFrequency: 30 # check if should terminate every N scheduler decisions

0 commit comments

Comments
 (0)