[jboss-jira] [JBoss JIRA] (JGRP-1950) Table: check if correct when seqno wraps around
Bela Ban (JIRA)
issues at jboss.org
Sun Aug 9 08:20:03 EDT 2015
Bela Ban created JGRP-1950:
------------------------------
Summary: Table: check if correct when seqno wraps around
Key: JGRP-1950
URL: https://issues.jboss.org/browse/JGRP-1950
Project: JGroups
Issue Type: Task
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 3.6.5
Check if we get correct results when a seqno wraps around. Use range [Long.MAX_VALUE -5 .. Long.MAX_VALUE + 5] to test.
The program below shows that NakReceiverWindow *doesn't* add the range correctly. Check if {{Table}} handles this correctly.
{noformat}
long seqno=Long.MAX_VALUE-5;
TimeScheduler timer=new TimeScheduler3();
Address sender=Util.createRandomAddress("A");
NakReceiverWindow win=new NakReceiverWindow(sender, new Retransmitter.RetransmitCommand() {
@Override
public void retransmit(long first_seqno, long last_seqno, Address sender) {
}
}, seqno, timer, true);
for(int i=0; i < 20; i++)
win.add(seqno++, new Message(null, "hello"));
System.out.println("win = " + win);
final AtomicBoolean processing=new AtomicBoolean(false);
List<Message> msgs=win.removeMany(processing, true, 200);
System.out.printf("removed %d msgs\n", msgs.size());
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list