Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-6429

tasks API page has missing information

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 6.5.x Doc Updates
    • 6.5 Milestone 1
    • rest
    • None
    • DOC-2020-S5-Mar22, DOC-2020-S6-Apr05
    • 1

    Description

      The tasks API now serves additional information apart from the documentation tracked here. It is missing the stageInfo part of the tasks return during rebalance. 

      https://docs.couchbase.com/server/current/rest-api/rest-get-cluster-tasks.html

       

      When rebalance is not running, the lastReportURI is missing which shows the REST API to obtain the last rebalance report. 

      curl -sX GET -u Administrator:password http://localhost:9002/pools/default/tasks | jq .
      [
        {
          "statusId": "2559dd97645f36079cae3d289fbee860",
          "type": "rebalance",
          "status": "notRunning",
          "statusIsStale": false,
          "masterRequestTimedOut": false,
          "lastReportURI": "/logs/rebalanceReport?reportID=bd01c81b3e526789b35347f998a3604c"
        }
      ] 

       

      When rebalance is running, It is missing the stageInfo field. 

      $ curl -sX GET -u Administrator:password http://localhost:9002/pools/default/tasks | jq .
      [
        {
          "statusId": "103f28ead47c9141c79b9289b905c3e1",
          "type": "rebalance",
          "subtype": "rebalance",
          "recommendedRefreshPeriod": 0.25,
          "status": "running",
          "progress": 9.8202614379085,
          "perNode": {
            "n_3@127.0.0.1": {
              "progress": 13.72549019607843
            },
            "n_2@127.0.0.1": {
              "progress": 11.11111111111112
            },
            "n_1@127.0.0.1": {
              "progress": 11.11111111111112
            },
            "n_4@127.0.0.1": {
              "progress": 1.38888888888889
            },
            "n_0@192.168.0.23": {
              "progress": 11.76470588235294
            }
          },
          "detailedProgress": {
            "bucket": "default",
            "bucketNumber": 1,
            "bucketsCount": 1,
            "perNode": {
              "n_4@127.0.0.1": {
                "ingoing": {
                  "docsTotal": 3967,
                  "docsTransferred": 489,
                  "activeVBucketsLeft": 187,
                  "replicaVBucketsLeft": 176
                },
                "outgoing": {
                  "docsTotal": 0,
                  "docsTransferred": 0,
                  "activeVBucketsLeft": 0,
                  "replicaVBucketsLeft": 0
                }
              },
              "n_3@127.0.0.1": {
                "ingoing": {
                  "docsTotal": 0,
                  "docsTransferred": 0,
                  "activeVBucketsLeft": 0,
                  "replicaVBucketsLeft": 48
                },
                "outgoing": {
                  "docsTotal": 975,
                  "docsTransferred": 121,
                  "activeVBucketsLeft": 48,
                  "replicaVBucketsLeft": 83
                }
              },
              "n_2@127.0.0.1": {
                "ingoing": {
                  "docsTotal": 0,
                  "docsTransferred": 0,
                  "activeVBucketsLeft": 0,
                  "replicaVBucketsLeft": 46
                },
                "outgoing": {
                  "docsTotal": 999,
                  "docsTransferred": 126,
                  "activeVBucketsLeft": 46,
                  "replicaVBucketsLeft": 84
                }
              },
              "n_1@127.0.0.1": {
                "ingoing": {
                  "docsTotal": 0,
                  "docsTransferred": 0,
                  "activeVBucketsLeft": 0,
                  "replicaVBucketsLeft": 46
                },
                "outgoing": {
                  "docsTotal": 1002,
                  "docsTransferred": 136,
                  "activeVBucketsLeft": 46,
                  "replicaVBucketsLeft": 94
                }
              },
              "n_0@192.168.0.23": {
                "ingoing": {
                  "docsTotal": 0,
                  "docsTransferred": 0,
                  "activeVBucketsLeft": 0,
                  "replicaVBucketsLeft": 47
                },
                "outgoing": {
                  "docsTotal": 991,
                  "docsTransferred": 106,
                  "activeVBucketsLeft": 47,
                  "replicaVBucketsLeft": 102
                }
              }
            }
          },
          "stageInfo": {
            "analytics": {
              "startTime": false,
              "completedTime": false,
              "timeTaken": false
            },
            "eventing": {
              "startTime": false,
              "completedTime": false,
              "timeTaken": false
            },
            "search": {
              "startTime": false,
              "completedTime": false,
              "timeTaken": false
            },
            "index": {
              "startTime": false,
              "completedTime": false,
              "timeTaken": false
            },
            "data": {
              "totalProgress": 11.20915032679739,
              "perNodeProgress": {
                "n_4@127.0.0.1": 0.08333333333333337,
                "n_3@127.0.0.1": 0.1372549019607843,
                "n_2@127.0.0.1": 0.1111111111111112,
                "n_1@127.0.0.1": 0.1111111111111112,
                "n_0@192.168.0.23": 0.1176470588235294
              },
              "startTime": "2020-03-12T16:15:27.601-07:00",
              "completedTime": false,
              "timeTaken": 10564,
              "details": {
                "default": {
                  "vbucketLevelInfo": {
                    "move": {
                      "averageTime": 353.4,
                      "totalCount": 408,
                      "remainingCount": 363
                    },
                    "backfill": {
                      "averageTime": 26.48936170212766
                    },
                    "takeover": {
                      "averageTime": 29.44444444444444
                    },
                    "persistence": {
                      "averageTime": 14.14285714285714
                    }
                  },
                  "replicationInfo": {
                    "n_3@127.0.0.1": {
                      "inDocsTotal": 0,
                      "inDocsLeft": 0,
                      "outDocsTotal": 975,
                      "outDocsLeft": 854
                    },
                    "n_1@127.0.0.1": {
                      "inDocsTotal": 0,
                      "inDocsLeft": 0,
                      "outDocsTotal": 1002,
                      "outDocsLeft": 866
                    },
                    "n_4@127.0.0.1": {
                      "inDocsTotal": 3967,
                      "inDocsLeft": 3478,
                      "outDocsTotal": 0,
                      "outDocsLeft": 0
                    },
                    "n_2@127.0.0.1": {
                      "inDocsTotal": 0,
                      "inDocsLeft": 0,
                      "outDocsTotal": 999,
                      "outDocsLeft": 873
                    },
                    "n_0@192.168.0.23": {
                      "inDocsTotal": 0,
                      "inDocsLeft": 0,
                      "outDocsTotal": 991,
                      "outDocsLeft": 885
                    }
                  },
                  "startTime": "2020-03-12T16:15:29.084-07:00",
                  "completedTime": false,
                  "timeTaken": 9081
                }
              }
            },
            "query": {
              "startTime": false,
              "completedTime": false,
              "timeTaken": false
            }
          },
          "rebalanceId": "042f739e86a89fe2854e1d4a65c5cbae",
          "nodesInfo": {
            "active_nodes": [
              "n_0@192.168.0.23",
              "n_1@127.0.0.1",
              "n_2@127.0.0.1",
              "n_3@127.0.0.1",
              "n_4@127.0.0.1"
            ],
            "keep_nodes": [
              "n_0@192.168.0.23",
              "n_1@127.0.0.1",
              "n_2@127.0.0.1",
              "n_3@127.0.0.1",
              "n_4@127.0.0.1"
            ],
            "eject_nodes": [],
            "delta_nodes": [],
            "failed_nodes": []
          },
          "masterNode": "n_0@192.168.0.23"
        }
      ]

      Attachments

        Issue Links

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

          Activity

            People

              tony.hillman Tony Hillman (Inactive)
              Abhijeeth.Nuthan Abhijeeth Nuthan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty