Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-133

ViewFuture timeout not passed through to multiget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 1.1-beta
    • 1.1-dp3
    • Core
    • Security Level: Public
    • None

    Description

      In the ViewFuture, the get() method accepts a timeout but it is not passed down to the mutligetRef call (which would also accept one). In this case, some operations may be stuck in there for longer than needed.

      Here is a potential fix that came up:

      com.couchbase.client.internal.ViewFuture.java
      public ViewResponse get(long duration, TimeUnit unit)
      throws InterruptedException, ExecutionException, TimeoutException {
      ....
      Map<String, Object> docMap = multigetRef.get().get(); => Map<String, Object> docMap = multigetRef.get(duration, units);
      Final ViewResponseWithDocs view = (ViewResponseWithDocs) objRef.get();
      Collection<ViewRow> rows = new LinkedList<ViewRow>();
      ...

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            daschl Michael Nitschinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty