Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7366

healthchecker exception with incomingXdrPerformance stats

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • 1.8.1
    • clients
    • Security Level: Public
    • None
    • Using cbhealthchecker as of git commit 30deb879, and a .json report from some other version of healthchecker from a customer on 1.8.0.

    Description

      Exception when running current health checker on older file. If I comment out the incomingXdrPerformance stat, this goes away.

      ~/c/code/healthchecker (master)$ ./cbhealthchecker -i ~/c/cust/advertise.com/couchbase/2012-11-19_15-57-27.json
      Exception launched when processing counter: incomingXdrPerformance
      Traceback (most recent call last):
      File "/Users/tim/c/code/healthchecker/analyzer.py", line 76, in run_analysis
      result = eval("

      {0}.{1}().run(counter, scale, threshold.{2})".format(package_name, counter['code'], capsule_name))
      File "<string>", line 1, in <module>
      File "/Users/tim/c/code/healthchecker/cluster_stats.py", line 793, in run
      nodeStats = values["nodeStats"]
      TypeError: 'NoneType' object is unsubscriptable

      The run finished successfully. Please find html output at 'reports/2012-12-05_10-43-43.html' and text output at 'reports/2012-12-05_10-43-43.txt'.

      ~/c/code/healthchecker (master)$ git log -1
      commit 30deb87990b4e7dcc39bd4eb3769a15870760f87 (HEAD, origin/master, origin/HEAD, master)
      Author: Bin Cui <bin.cui@gmail.com>
      Date: Wed Nov 21 14:30:39 2012 -0800

      polish output report

      diff --git a/cluster_stats.py b/cluster_stats.py
      index 8de926e..f528fae 100755
      — a/cluster_stats.py
      +++ b/cluster_stats.py
      @@ -1173,24 +1173,24 @@ ClusterCapsule = [
      "perNode" : True,
      "perBucket" : True,
      },
      - {"name" : "IncomingXDCRPerformance",
      - "ingredients" : [
      - {
      - "name" : "incomingXdrPerformance",
      - "description" : "Incoming XDCR Get/Set ops ratio",
      - "counter" : ["ep_num_ops_get_meta", "ep_num_ops_set_meta"],
      - "code" : "XdrOpsPerformance",
      - "threshold" : { - "low" : 2, - "high" : 10 - },
      - "symptom" : "Get to Set ops ratio '{0}

      ' is bigger than '

      {1}'. Too few set operations.",
      - "formula" : "Avg(ep_num_ops_get_meta) / Avg(ep_num_ops_set_meta)",
      - },
      - ],
      - "perNode" : True,
      - "perBucket" : True,
      - },
      +# {"name" : "IncomingXDCRPerformance",
      +# "ingredients" : [
      +# {
      +# "name" : "incomingXdrPerformance",
      +# "description" : "Incoming XDCR Get/Set ops ratio",
      +# "counter" : ["ep_num_ops_get_meta", "ep_num_ops_set_meta"],
      +# "code" : "XdrOpsPerformance",
      +# "threshold" : { +# "low" : 2, +# "high" : 10 +# },
      +# "symptom" : "Get to Set ops ratio '{0}' is bigger than '{1}

      '. Too few set operations.",
      +# "formula" : "Avg(ep_num_ops_get_meta) / Avg(ep_num_ops_set_meta)",
      +# },
      +# ],
      +# "perNode" : True,
      +# "perBucket" : True,
      +# },
      {"name" : "CompactionPerformance",

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bcui Bin Cui (Inactive)
            TimSmith Tim Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty