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

Improve backoff/retry when SDK is configured with bad credentials

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.6.1
    • None
    • None
    • None
    • 5
    • SDK12: Scp Fnc, FIT, Misc

    Description

      Suggested Release Note:

      Reduced the rate at which messages appear in the server's `http_access.log` when invalid credentials are provided.

      An SDK configured with bad credentials spams the server with HTTP requests for "/pools/default/b/<bucket-name>". It would be nice to throttle these requests somehow.

      To reproduce:

      public static void main(String... args) throws Exception {
        Cluster cluster = Cluster.connect("127.0.0.1", "Administrator", "bad-password");
        Bucket bucket = cluster.bucket("default");
        MINUTES.sleep(10);
      }
      

      and tail var/lib/couchbase/logs/http_access.log

      Edit: This can also occur when an SDK has correct credentials, but that user does not have RBAC to access the bucket. If they have access to no buckets, 401 Unauthorized will be returned, if they have access to another bucket 403 Forbidden will be returned.

      Attachments

        Issue Links

          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:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  PagerDuty