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

CancellationErrorContext.getWaitUntilReadyContext can throw ClassCastException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 2.4.1
    • None
    • None
    • None
    • 0

    Description

      Suggested release note text:

      If you call `CancellationErrorContext.getWaitUntilReadyContext()` on an error context that didn't come from a "wait until ready" request, the method is now guaranteed to return null instead of sometimes throwing a `ClassCastException`.

       

      It's possible to construct a `CancellationErrorContext` with an `AbstractContext` that isn't a `WaitUntilReadyContext`. When this happens, `getWaitUntilReadyContext` throws ClassCastException. It should probably return null instead.

      Attachments

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

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty