Skip to content

Commit

Permalink
Modified BundlerStressTest
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Mar 6, 2023
1 parent 05afc0c commit db60cc7
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 128 deletions.
18 changes: 18 additions & 0 deletions bin/bundler-stress_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

## Rund BundlerStressTest, writes results to $OUTPUT (removes it first, when started)

## The bundler to be tested
BUNDLERS="no-bundler transfer-queue per-destination"
OUTPUT="bst.txt"
THREADS="1 8 100"
PROPS="$HOME/tcp.xml"
PGM=BundlerStressTest

rm -f $OUTPUT
for i in $BUNDLERS;
do for j in $THREADS;
do jt $PGM -props $PROPS -bundler $i -num_sender_threads $j -interactive false -time 30 -warmup 10 >> $OUTPUT;
done;
done;

6 changes: 3 additions & 3 deletions src/org/jgroups/protocols/pbcast/NAKACK2.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ public void setResendLastSeqno(boolean flag) {
/** Used by the retransmit task to keep the last retransmitted seqno per sender (https://issues.redhat.com/browse/JGRP-1539) */
protected final Map<Address,Long> xmit_task_map=new ConcurrentHashMap<>();

protected volatile boolean leaving=false;
protected volatile boolean running=false;
protected TimeScheduler timer=null;
protected volatile boolean leaving;
protected volatile boolean running;
protected TimeScheduler timer;
protected LastSeqnoResender last_seqno_resender;
protected final Lock rebroadcast_lock=new ReentrantLock();
protected final Condition rebroadcast_done=rebroadcast_lock.newCondition();
Expand Down
Loading

0 comments on commit db60cc7

Please sign in to comment.