Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-424

Bookie start is failing intermittently when zkclient connection delays

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0, 4.1.0
    • 4.2.0
    • bookkeeper-server
    • None

    Description

      I'm seeing the following intermittent failure, when there is a delay in establishing zkclient connection with zkserver.

      org.apache.bookkeeper.bookie.BookieException$InvalidCookieException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /ledgers/INSTANCEID
      	at org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:329)
      	at org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:378)
      	at org.apache.bookkeeper.bookie.BookieInitializationTest.testStartBookieWithoutZKServer(BookieInitializationTest.java:253)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      	at org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28)
      Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /ledgers/INSTANCEID
      	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
      	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
      	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1131)
      	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1160)
      	at org.apache.bookkeeper.bookie.Bookie.getInstanceId(Bookie.java:346)
      	at org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:280)
      	... 11 more
      

      Attachments

        1. BOOKKEEPER-424-6.patch
          23 kB
          Rakesh Radhakrishnan
        2. BOOKKEEPER-424-5.patch
          23 kB
          Rakesh Radhakrishnan
        3. BOOKKEEPER-424-4.patch
          7 kB
          Rakesh Radhakrishnan
        4. BOOKKEEPER-424-3.patch
          7 kB
          Rakesh Radhakrishnan
        5. BOOKKEEPER-424-2.patch
          7 kB
          Rakesh Radhakrishnan
        6. BOOKKEEPER-424-1.patch
          6 kB
          Rakesh Radhakrishnan

        Activity

          People

            rakeshr Rakesh Radhakrishnan
            rakeshr Rakesh Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: