Uploaded image for project: 'Java DCP Client'
  1. Java DCP Client
  2. JDCP-97

Java DCP client could not reconnect to Couchbase hosted on Docker Container

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 0.20.0
    • 0.17.0
    • None
    • Couchbase Docker image on MacOS and Couchbase Docker image on Openshift platform
    • 1

    Description

      We are using Couchbase Docker image both to develop on laptop and on our DEV and QA environment.

      We are developing on Mac OS and our DEV and QA environment work with OpenShift v3.7.1 (Kubernetes v1.7.6).

      On preproduction and production environment, Couchbase is deployed on VM.

      • When using Java DCP client 0.17.0 or older version hosted in Docker, Java DCP client always failed to reconnect to Couchbase container once we restart the container.
      • When using Java DCP client 0.17.0 or older version hosted on a VM (or directly on laptop), Java DCP client always reconnect to Couchbase container once we restart Couchbase.

      Step to reproduce 

      This issue occur both with Couchbase 4.6.5 and Couchbase 5.1.0 (and probably all others versions)

      1. Run Couchbase in Docker container as described in configuration (https://developer.couchbase.com/documentation/server/current/install/getting-started-docker.html) 
      2. Init the Couchbase server and install the sample bucket "travel-sample"
      3. Run the exemple described in the Readme on GitHub https://github.com/couchbase/java-dcp-client after increasing the sleep timeout to several minutes (see Main.java in attachement)
      4. Make a mutation on a document in "travel-sample" bucket though the Couchbase administrator interface
      5. The mutation is printed by the java program
      6. Stop your Couchbase Docker container
      7. Start your Couchbase Docker container few second later 
      8. Make a mutation on a document in travel-sample bucket though the Couchbase administrator interface
      9. The mutation is not printed by the java program

      When doing the same test without Couchbase on Docker container, step 9 print the mutation.

      Thanks,

       

       

      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
              llagatie Ludovic LAGATIE
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty