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

Log container file path when container cannot be written

    XMLWordPrintableJSON

Details

    Description

      2022-08-01 17:09:45,281 ERROR org.apache.hadoop.ozone.container.common.statemachine.commandhandler.CloseContainerCommandHandler: Can't close co
      ntainer #8805
      org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException: Error while creating/ updating .container file. ContainerID: 880
      5
              at org.apache.hadoop.ozone.container.keyvalue.KeyValueContainer.writeToContainerFile(KeyValueContainer.java:262)
              at org.apache.hadoop.ozone.container.keyvalue.KeyValueContainer.updateContainerFile(KeyValueContainer.java:282)
              at org.apache.hadoop.ozone.container.keyvalue.KeyValueContainer.updateContainerData(KeyValueContainer.java:400)
              at org.apache.hadoop.ozone.container.keyvalue.KeyValueContainer.markContainerForClose(KeyValueContainer.java:313)
              at org.apache.hadoop.ozone.container.keyvalue.KeyValueHandler.markContainerForClose(KeyValueHandler.java:994)
              at org.apache.hadoop.ozone.container.ozoneimpl.ContainerController.markContainerForClose(ContainerController.java:101)
              at org.apache.hadoop.ozone.container.common.statemachine.commandhandler.CloseContainerCommandHandler.handle(CloseContainerCommandHandle
      r.java:92)
              at org.apache.hadoop.ozone.container.common.statemachine.commandhandler.CommandDispatcher.handle(CommandDispatcher.java:99)
              at org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.lambda$initCommandHandlerThread$3(DatanodeStateMachine.ja
      va:621)
              at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.io.IOException: Permission denied
      

      Would be really nice to log container file path to make troubleshooting easier.

      Attachments

        Issue Links

          Activity

            People

              sgal Szabolcs Gál
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: