Skip to content

Rewrite couchbase module. closes #2447 - #2486

Closed
daschl wants to merge 2 commits into
testcontainers:masterfrom
daschl:couchbase-rewrite
Closed

Rewrite couchbase module. closes #2447#2486
daschl wants to merge 2 commits into
testcontainers:masterfrom
daschl:couchbase-rewrite

Conversation

@daschl

@daschl daschl commented Mar 27, 2020

Copy link
Copy Markdown
Member

This changeset completely reworks the couchbase module and hopefully
greatly improve the out-of-the-box experience. Note that this is a
breaking change over the previous code because by intention it does
NOT depend on SDK 2 so you can test SDK 2 and 3 with it at the same
time.

Highlights:

  • Removed the need for a SDK, so both 2 and 3 can be used with it.
  • Updated to 6.5.0 baseline and using alternate addresses for
    "proper" port exposure without having to rely on the socat
    proxy container like the previous version had to.
  • Allows to define which services should be exposed and handles
    states automatically (i.e. will not try to create the primary
    index if the query service is not enabled).

Note that a bunch of tests have been removed since they are not
adequate anymore. A side effect of the alternate address change
is that older servers cannot be used. 6.5.0 is available in both
CE and EE, and Couchbase in general allows EE versions to be used
in development and testing so we should use it if we can.

This changeset completely reworks the couchbase module and hopefully
greatly improve the out-of-the-box experience. Note that this is a
breaking change over the previous code because by intention it does
NOT depend on SDK 2 so you can test SDK 2 and 3 with it at the same
time.

Highlights:

 - Removed the need for a SDK, so both 2 and 3 can be used with it.
 - Updated to 6.5.0 baseline and using alternate addresses for
   "proper" port exposure without having to rely on the socat
   proxy container like the previous version had to.
 - Allows to define which services should be exposed and handles
   states automatically (i.e. will not try to create the primary
   index if the query service is not enabled).

Note that a bunch of tests have been removed since they are not
adequate anymore. A side effect of the alternate address change
is that older servers cannot be used. 6.5.0 is available in both
CE and EE, and Couchbase in general allows EE versions to be used
in development and testing so we should use it if we can.
@bsideup bsideup added this to the next milestone Mar 27, 2020
@bsideup bsideup added modules/couchbase type/breaking-api-change Public APIs are being changed labels Mar 27, 2020
@daschl

daschl commented Mar 27, 2020

Copy link
Copy Markdown
Member Author

Hm, there seems to be a test failure with okhttp

Caused by:
                        java.io.EOFException: \n not found: limit=0 content=…
                            at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:240)

not really conclusive, looking into it.

@bsideup

bsideup commented Mar 29, 2020

Copy link
Copy Markdown
Member

Awesome!

I applied some tiny changes but was unable to push to the author's branch, so I submitted a new PR (with the commits preserved), so that we can merge it ASAP:
#2491

@bsideup bsideup closed this Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants