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

non-transient handlers can stay in a bad state in case of exceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • .backlog
    • 1.3.1, 1.3.2
    • None
    • None

    Description

      Handlers like the QueryHandler can stay in a bad decoding state if an exception occurs during the doEncode call.
      Exceptions are caught in AbstractGenericHandler in order to be forwarded to the request's Observable, but it has 2 shortcomings:

      1. the state isn't reset (and specific state like queryParsingState isn't reset either)
      2. if the parsing is done in a "streaming" fashion where a CouchbaseResponse is sent early, and the exception occurs after that fact, the observable will have been completed and cannot actually emit the error.

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            simonbasle Simon Baslé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty