Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1347

UNICAST/UNICAST2: message can get delivered multiple times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.12.2, 3.0
    • None
    • None

    Description

      In handleDataReceived(), when our connection is not the same as the conn_id of the incoming message, we (1) remove the window and (2) create a new one and add it.
      However, (1) and (2) are not synchronized: when multiple threads go through this code concurrently, we could have a sequence 1-2-1, meaning the window is removed, a new one is created, but then - because another thread got conn_id != our conn_id true, the window will be removed again !
      This means that a message #1 might get added to the new window and delivered to the app, and then the same thing could happen again, because we re-create the window again !
      SOLUTION: synchronization around: check for conn_id match, removal and creation of the new window

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: