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

Handle DeleteContainerCommand in the SCMDatanodeProtocolServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None

    Description

      Right now, in the SCMDatanodeProtocolServer getCommandResponse() deleteContainerCommand is not handled, so deleteContainerCommand is not sent to Datanode.

       

      The deletecontainercommand request is sent for over replicated containers, so this over replication is currently broken because of this.

       

      Because of this we see below error:

       

      java.lang.IllegalArgumentException: Not implemented
       at org.apache.hadoop.hdds.scm.server.SCMDatanodeProtocolServer.getCommandResponse(SCMDatanodeProtocolServer.java:345)
       at org.apache.hadoop.hdds.scm.server.SCMDatanodeProtocolServer.sendHeartbeat(SCMDatanodeProtocolServer.java:272)
       at org.apache.hadoop.ozone.protocolPB.StorageContainerDatanodeProtocolServerSideTranslatorPB.sendHeartbeat(StorageContainerDatanodeProtocolServerSideTranslatorPB.java:88)
       at org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos$StorageContainerDatanodeProtocolService$2.callBlockingMethod(StorageContainerDatanodeProtocolProtos.java:27753)
       at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524)
       at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025)
       at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876)
       at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.Subject.doAs(Subject.java:422)
       at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)
       at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682)
      

       

      Attachments

        1. HDDS-1024.00.patch
          10 kB
          Bharat Viswanadham
        2. HDDS-1024.01.patch
          10 kB
          Bharat Viswanadham
        3. HDDS-1024.02.patch
          12 kB
          Bharat Viswanadham
        4. HDDS-1024.03.patch
          12 kB
          Bharat Viswanadham
        5. HDDS-1024.04.patch
          12 kB
          Bharat Viswanadham

        Activity

          People

            bharat Bharat Viswanadham
            bharat Bharat Viswanadham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: