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

Lack of incremental progress updates while partitioned indexes are building during rebalance

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • 1
    • No

    Description

      Copying from bug MB-45939
      Kevin Cherkauer mentioned the following

      Balakumaran Gopal There could be a bug in the progress updating for partitioned indexes such that as these build their progress may be staying at 0% until the build is done and they move to TransferTokenMerge state, at which point their progress will instantly change to 100%. The progress computation code is pretty complex, especially for partitioned indexes. I looked through it and could not find a bug but also could not convince myself it will get non-zero progress for partitioned indexes while they are in TransferTokenInProgress state. In the current MB a rebalance with 6 transfer tokens stayed at progress 0.16666666666666669 for a long time (this is exactly 1/6th except last digit is 9 instead of 7 which might just be due to floating point precision limitations) and in repro MB-46552 another rebalance progress stayed at 0.5555555555555556 for a long time (this is exactly 5/9ths). This implies it is not getting incremental progress updates for some transfer tokens but instead they are reporting either 0% or 100%.
       
      You may wish to open an MB for the apparent lack of incremental progress updates while partitioned indexes are building during rebalance. Presumably we can defer that new MB to CCNext
      

      Copying from bugĀ MB-46552

      Looks like it finally completed after 14 hours. It was just slow. varun.velamuri - Please close this off if the reason for the slow rebalance is valid.

      Looks like it was stuck at 55.55555555555556 % for long time(maybe 8+hours) giving an impression that it was hung.

      Tue May 25 20:34:47 PDT 2021
      {
        "status": "running",
        "msg": "Rebalance is running",
        "details": {
          "progress": 55.55555555555556,
          "refresh": 0.25,
          "totalBuckets": 10,
          "curBucket": 10,
          "curBucketName": "default",
          "docsRemaining": 0
        }
      }
      

      ns_1@172.23.106.70 11:20:38 PM 25 May, 2021

      Rebalance completed successfully.
      Rebalance Operation Id = ce74d9abdb4cfff2d661b7ff0a20a220

      Logs are available from MB-45939 and MB-46552

      Attachments

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

        Activity

          People

            kevin.cherkauer Kevin Cherkauer (Inactive)
            Balakumaran.Gopal Balakumaran Gopal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty