Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12611

TestZKSignerSecretProvider#testMultipleInit occasionally fail

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2, 2.7.6
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      https://builds.apache.org/job/Hadoop-Common-trunk/2053/testReport/junit/org.apache.hadoop.security.authentication.util/TestZKSignerSecretProvider/testMultipleInit/

      Error Message

      expected null, but was:<[B@142bad79>

      Stacktrace

      java.lang.AssertionError: expected null, but was:<[B@142bad79>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotNull(Assert.java:664)
      at org.junit.Assert.assertNull(Assert.java:646)
      at org.junit.Assert.assertNull(Assert.java:656)
      at org.apache.hadoop.security.authentication.util.TestZKSignerSecretProvider.testMultipleInit(TestZKSignerSecretProvider.java:149)

      I think the failure was introduced after HADOOP-12181

      This is likely where the root cause is:

      2015-11-29 00:24:33,325 ERROR ZKSignerSecretProvider - An unexpected exception occurred while pulling data fromZooKeeper
      java.lang.IllegalStateException: instance must be started before calling this method
      at com.google.common.base.Preconditions.checkState(Preconditions.java:145)
      at org.apache.curator.framework.imps.CuratorFrameworkImpl.getData(CuratorFrameworkImpl.java:363)
      at org.apache.hadoop.security.authentication.util.ZKSignerSecretProvider.pullFromZK(ZKSignerSecretProvider.java:341)
      at org.apache.hadoop.security.authentication.util.ZKSignerSecretProvider.rollSecret(ZKSignerSecretProvider.java:264)
      at org.apache.hadoop.security.authentication.util.ZKSignerSecretProvider$$EnhancerByMockitoWithCGLIB$$575f06d8.CGLIB$rollSecret$2(<generated>)
      at org.apache.hadoop.security.authentication.util.ZKSignerSecretProvider$$EnhancerByMockitoWithCGLIB$$575f06d8$$FastClassByMockitoWithCGLIB$$6f94a716.invoke(<generated>)
      at org.mockito.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:216)
      at org.mockito.internal.creation.AbstractMockitoMethodProxy.invokeSuper(AbstractMockitoMethodProxy.java:10)
      at org.mockito.internal.invocation.realmethod.CGLIBProxyRealMethod.invoke(CGLIBProxyRealMethod.java:22)
      at org.mockito.internal.invocation.realmethod.FilteredCGLIBProxyRealMethod.invoke(FilteredCGLIBProxyRealMethod.java:27)
      at org.mockito.internal.invocation.Invocation.callRealMethod(Invocation.java:211)
      at org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:36)
      at org.mockito.internal.MockHandler.handle(MockHandler.java:99)
      at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:47)
      at org.apache.hadoop.security.authentication.util.ZKSignerSecretProvider$$EnhancerByMockitoWithCGLIB$$575f06d8.rollSecret(<generated>)
      at org.apache.hadoop.security.authentication.util.RolloverSignerSecretProvider$1.run(RolloverSignerSecretProvider.java:97)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

        1. HADOOP-12611.001.patch
          10 kB
          Wei-Chiu Chuang
        2. HADOOP-12611.002.patch
          6 kB
          Wei-Chiu Chuang
        3. HADOOP-12611.003.patch
          11 kB
          Eric Badger
        4. HADOOP-12611.004.patch
          14 kB
          Eric Badger
        5. HADOOP-12611.005.patch
          9 kB
          Eric Badger
        6. HADOOP-12611.006.patch
          16 kB
          Eric Badger

          Issue Links

            Activity

              People

              • Assignee:
                ebadger Eric Badger
                Reporter:
                jojochuang Wei-Chiu Chuang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: