Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-345

Range scan gets stuck when concurrency or more than 1 IO threads are used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.13
    • None
    • library
    • None
    • 2
    • SDK50, SDK52, SDK02: V.Search, maxTTL=-1, SDK04: Scope Search, SDK06: FIT, PS, CXX, SDK08: SDK3.5, 0xD, FtrNA, PS

    Description

      When both concurrency of more than 1 and more than 1 IO threads are used, range scans occasionally get stuck waiting for the next item future (https://github.com/couchbaselabs/couchbase-cxx-client/blob/main/core/scan_result.cxx#L35), after some items have been returned. The vbucket scans all get completed successfully.

      From the attached logs (from running the FIT tests with concurrency 10 and 8 IO threads - and some additional logging around the next() function) it can be seen that all scans have been completed and all threads correctly detect that there are no more vbuckets to scan. The first few calls to next() return an item, the last one which happens relatively early on during the scans never returns. This does not always happen with the same test.

      Attachments

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

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            Dimitris.Christodoulou Dimitris Christodoulou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes