Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite couchbase module. closes #2447 #2486

Closed
wants to merge 2 commits into from

Conversation

daschl
Copy link
Member

@daschl daschl commented Mar 27, 2020

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
Copy link
Member Author

daschl commented Mar 27, 2020

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
Copy link
Member

bsideup commented Mar 29, 2020

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.

None yet

2 participants