Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Dec 19, 2024
1 parent 6e0bb6a commit f463861
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/org/jgroups/util/LazyThreadFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ protected void renameThreads() {
for(Iterator<WeakReference<Thread>> it=threads.iterator(); it.hasNext();) {
WeakReference<Thread> ref=it.next();
Thread thread=ref.get();
if(thread == null) {
it.remove();
continue;
}
String name=thread.getName();
name=changeName(name);
thread.setName(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testLargeRetransmission(Class<? extends Protocol> unicast_class) thr
startRetransmission(a, b);
setLevel("trace", a,b);

Util.waitUntilListHasSize(list, NUM_MSGS, 10000, 1000);
Util.waitUntilListHasSize(list, NUM_MSGS, 15000, 1000);
int expected=1;
for(int num: list) {
assert expected == num;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void testConcurrentConnect() throws Exception {
a.send(addr_b, String.format("%s%d", addr_a, i));
for(int i=1; i <= NUM; i++)
b.send(addr_a, String.format("%s%d", addr_b, i));
Util.waitUntil(5000, 100, () -> la.size() == 5 && lb.size() == 5,
Util.waitUntil(10000, 100, () -> la.size() == 5 && lb.size() == 5,
() -> String.format("A: %s, B: %s", la, lb));
System.out.printf("### conns after sending:\n%s\n", printConnections(a,b));

Expand Down

0 comments on commit f463861

Please sign in to comment.