Skip to content

GH-1773 - Add support for Couchbase - #1780

Open
Fezlight wants to merge 6 commits into
spring-projects:mainfrom
Fezlight:feat/GH-1773_add_couchbase_support
Open

GH-1773 - Add support for Couchbase#1780
Fezlight wants to merge 6 commits into
spring-projects:mainfrom
Fezlight:feat/GH-1773_add_couchbase_support

Conversation

@Fezlight

@Fezlight Fezlight commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

A new events module created spring-modulith-events-couchbase. This module aim to support Couchbase database in a similar way as MongoDB module and also support Transactional.

Couchbase need collections and indexes to be manually created like JDBC-base implementation, so i added some information in appendix.

Fixes #1773

Next

I think a next way can be to auto-configure collections and indexes programmatically using Couchbase SDK like JDBC-based implementation "spring.modulith.events.jdbc.schema-initialization.enabled"

Known issue

There is an issue with the "bootstrapsApplication" test in couchbase epr module with transation propagation level REQUIRE_NEW not being supported for now (See in Scenario). I don't know if Spring modulith use this transaction propagation level somewhere else in the main module ?

java.lang.UnsupportedOperationException: Propagation level 'requires_new' has been specified which is not currently supported

	at org.springframework.data.couchbase.transaction.CouchbaseCallbackTransactionManager.handlePropagation(CouchbaseCallbackTransactionManager.java:227)
	at org.springframework.data.couchbase.transaction.CouchbaseCallbackTransactionManager.execute(CouchbaseCallbackTransactionManager.java:79)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
	at org.springframework.modulith.test.Scenario.lambda$stimulate$1(Scenario.java:169)
	at org.springframework.modulith.test.Scenario.lambda$stimulate$3(Scenario.java:183)
	at org.springframework.modulith.test.Scenario$When.awaitInternal(Scenario.java:415)
	at org.springframework.modulith.test.Scenario$When.andWaitForStateChange(Scenario.java:409)
	at example.ApplicationIntegrationTests.bootstrapsApplication(ApplicationIntegrationTests.java:106)

I will post an issue on spring-data-couchbase to discuss about this (here) . I think it's planned but not already released
image

@Fezlight
Fezlight marked this pull request as ready for review July 26, 2026 01:58
@Fezlight Fezlight changed the title GH-1773 - Add suport for Couchbase GH-1773 - Add support for Couchbase Aug 8, 2026
Signed-off-by: FezLight <alex_se@hotmail.fr>
Signed-off-by: FezLight <alex_se@hotmail.fr>
Signed-off-by: FezLight <alex_se@hotmail.fr>
Signed-off-by: FezLight <alex_se@hotmail.fr>
…level

Signed-off-by: FezLight <alex_se@hotmail.fr>
@Fezlight
Fezlight force-pushed the feat/GH-1773_add_couchbase_support branch 2 times, most recently from 0d5082f to f17185d Compare August 26, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Couchbase database

1 participant