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

[FTS] moss infinite loop in determineExponent()?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.0.0
    • 5.0.0
    • fts, moss
    • None
    • Untriaged
    • Unknown

    Description

      I just pulled a recent repo sync and running a dev build (osx), with moss commit 0bce41eed28, I see cbft consuming 500% cpu after a restart. Not sure how I got into this state, but I had 7 FTS default indexes on the beer-sample bucket. And, from repeated stack dumps, I see that moss is just seemingly infinite looping in calcPartialCompactionStart() / determineExponent(). Please see attached stack dump.

      Perhaps the default CompactionLevelMultiplier of 1 billion overflows? Perhaps the determineExponent should check for overflow? Perhaps determineExponent should have a max exponent param where it gives up?

      Attachments

        Issue Links

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

          Activity

            People

              sundar Sundar Sridharan (Inactive)
              steve Steve Yen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty