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

Server creation hangs when async-distribution-timeout is set on JDK11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • None
    • None

    Description

      Following the changes introduced in https://github.com/apache/geode/pull/4629, hangs are frequently observed when starting more than one server configured with an async-distribution-timeout when running on JDK 11.

      A test to reproduce the issue is provided below:

      public class ConnectionChangeHangTest {
        int serversToStart = 3;
      
        @Rule
        public ClusterStartupRule cluster = new ClusterStartupRule(serversToStart + 1);
      
        @Test
        /*
         * This test must be run with JDK 11 for it to show the hang
         */
        public void test() {
          MemberVM locator = cluster.startLocatorVM(0);
          int locatorPort = locator.getPort();
      
          for (int i = 0; i < serversToStart; ++i) {
            cluster.startServerVM(i + 1, s -> s.withConnectionToLocator(locatorPort)
                .withProperty("async-distribution-timeout", "5"));
          }
        }
      }
      

      Attachments

        Activity

          People

            donalevans Donal Evans
            donalevans Donal Evans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: