Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7654

Do not install old JGroups view

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RHDG 8.5.5 GA
    • None
    • None
    • None

      Issue found by the Keycloak test suite stability report here: https://docs.google.com/document/d/1GV-ZBY2naWgr_mOMTMYVTTmnd9grmT95FQZJNIqrAJk/edit?tab=t.0#heading=h.o4fd3gjhc3jw

      Almost all failures are related to this.

      The issue is difficult to reproduce outside the test suite since it happens when a view change event is handled between lines
      channel.connect(clusterName); and receiveClusterView(channel.getView(), true);.
      The test suite is updated with a test.

      The fix is just moving viewUpdateLock.lock(); to the beginning of the method receiveClusterView() so the if conditions are checked only after the locking is acquired, preventing old views from being installed.

              pruivo@redhat.com Pedro Ruivo
              pruivo@redhat.com Pedro Ruivo
              Anna Manukyan Anna Manukyan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: