Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-364

Query parsing bug on empty rows and response split at "status" keyword

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0, 1.3.1, 1.3.2
    • 1.3.3
    • None
    • None

    Description

      The QueryHandler gets into an inconsistent state when a query response contains no rows (empty array) and the response is split at the level of the "status": JSON field (eg. chunk 1 finishes with "sta and chunk 2 begins with tus":).

      Attachments

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

        Activity

          It seems that the root cause is in decideBetweenRowsAndObjects(), which doesn't call sectionDone() when detecting an empty rows array.

          simonbasle Simon Baslé (Inactive) added a comment - It seems that the root cause is in decideBetweenRowsAndObjects() , which doesn't call sectionDone() when detecting an empty rows array.

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            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