Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8670

ReconnectDUnitTest is hiding a NullPointerException

    XMLWordPrintableJSON

Details

    Description

      Since working on GEODE-8609, I found that the regex in ReconnectDUnitTest is incorrect. Specifically it looks like this:

          IgnoredException.addIgnoredException("ForcedDisconnectException||Possible loss of quorum");
      

      When removing the double pipe (||) various test methods fail with a NullPointerException. For example:

      java.lang.AssertionError: Suspicious strings were written to the log during this run.
      Fix the strings or use IgnoredException.addIgnoredException to ignore.
      -----------------------------------------------------------------------
      Found suspect string in 'dunit_suspect-vm1.log' at line 692
      
      [fatal 2020/10/29 05:59:26.027 PDT <Location services restart thread> tid=203] Uncaught exception in thread Thread[Location services restart thread,5,RMI Runtime]
      java.lang.NullPointerException
      	at org.apache.geode.distributed.internal.InternalLocator.attemptReconnect(InternalLocator.java:1108)
      	at org.apache.geode.distributed.internal.InternalLocator.lambda$launchRestartThread$4(InternalLocator.java:1070)
      	at java.lang.Thread.run(Thread.java:748)
      

      There is also an additional DistributedSystemDisconnectedException which probably just requires an addition to the other ignored exceptions.

      Attachments

        Issue Links

          Activity

            People

              bschuchardt Bruce J Schuchardt
              jens.deppe Jens Deppe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: