Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3970

ContainerStateManager: invalid state transition state: CLOSING event: FINALIZE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • test
    • None

    Description

      Invalid State transition detected during Storage Container Manger test. This doesn't happen all the time but only some time. Looks like there is some timing issue involved.

      Please see the details below

      <testcase name="testCloseContainerCommandOnRestart" classname="org.apache.hadoop.ozone.TestStorageContainerManager" time="20.12">

          <error message="Failed to update container state #5, reason: invalid state transition from state: CLOSING upon event: FINALIZE." type="org.apache.hadoop.hdds.scm.exceptions.SCMException">org.apache.hadoop.hdds.scm.exceptions.SCMException: Failed to update container state #5, reason: invalid state transition from state: CLOSING upon event: FINALIZE.

      at org.apache.hadoop.hdds.scm.container.ContainerStateManager.updateContainerState(ContainerStateManager.java:357)

      at org.apache.hadoop.hdds.scm.container.SCMContainerManager.updateContainerState(SCMContainerManager.java:345)

      at org.apache.hadoop.hdds.scm.container.SCMContainerManager.updateContainerState(SCMContainerManager.java:331)

      at org.apache.hadoop.ozone.TestStorageContainerManager.testCloseContainerCommandOnRestart(TestStorageContainerManager.java:606)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)

      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)

      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

      at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)

      </error>

      Attachments

        Issue Links

          Activity

            People

              ppogde Prashant Pogde
              ppogde Prashant Pogde
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: