[jboss-jira] [JBoss JIRA] (JGRP-1950) Table: check if correct when seqno wraps around

Bela Ban (JIRA) issues at jboss.org
Mon Aug 10 08:47:02 EDT 2015


    [ https://issues.jboss.org/browse/JGRP-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096899#comment-13096899 ] 

Bela Ban commented on JGRP-1950:
--------------------------------

I won't fix {{NakReceiverWindow}} (used by {{NAKACK}}, as these classes have been deprecated and are going to be removed in 4.0.

> 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