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

STABLE: use a bit set instead of a hash set for votes

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.4
    • None
    • None

    Description

      Currently, the votes hashset is cleared when the digest is reset, and then votes are added as STABLE messages come in. However, since the digest is based on an Address[] membership, we could create a FixedSizeBitSet, and the bit to set when a STABLE msg is received is computed as the sender's rank in that membership. When all bits are set, we can send a STABILITY message (= all votes have been received).
      This takes up less space than a hashset.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: