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

Need more unit tests for couchbase-client

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      CouchbaseConnectionFactoryBuilder cfb = new CouchbaseConnectionFactoryBuilder();
      cfb.setOpTimeout(10000); // wait up to 10 seconds for an operation to succeed
      cfb.setOpQueueMaxBlockTime(5000); // wait up to 5 seconds when trying to enqueue an operation

      For example, will fill up the funnel (the blocking queue) to the rim, but not overflow (immediately timeout). Once it's at the rim, it'll have to wait to wait until at least one operation flows out to add another operation. This will slow down the callers (their async calls will actually block on this internal queue), but that's okay in a bulk loader.

      However, there are no unit tests in couchbase-client to test this.

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

        Activity

        Hide
        daschl Michael Nitschinger added a comment -

        Closing this and reopening on tickets on demand.

        Show
        daschl Michael Nitschinger added a comment - Closing this and reopening on tickets on demand.

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            rags Raghavan Srinivas (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes