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

CreateContainer metrics are never updated

    XMLWordPrintableJSON

Details

    Description

      The CreateContainer metric in StorageContainerMetrics on DN is always zero.

      {
      "name": "Hadoop:service=HddsDatanode,name=StorageContainerMetrics",
      "modelerType": "StorageContainerMetrics",
      "tag.Context": "dfs",
      "tag.Hostname": "example-1.example.com",
      "numCreateContainer": 0,
      "bytesCreateContainer": 0,
      "LatencyCreateContainerNumOps": 0,
      "LatencyCreateContainerAvgTime": 0,
      

      It's because client never issues an explicit request to a create container.
      Create Container should happen only as part of Write_Data phase of writeChunk.

      I believe we should increment the CreateContainer metrics here in its handler: https://github.com/apache/ozone/blob/7e5cdde59ff584e142af0b664d7ad948159b7b91/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java#L243

      Attachments

        Issue Links

          Activity

            People

              dteng Dave Teng
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: