gnodet opened a new pull request, #299: URL: https://github.com/apache/camel-examples/pull/299
## Summary Closes/fixes https://issues.apache.org/jira/browse/CAMEL-23626 The couchbase-log example was using the deprecated MapReduce View API for consuming documents from Couchbase, which does not work with the Magma storage backend (default since Couchbase 8.0). ## Changes **`MyRouteBuilder.java`**: Remove `useView=true` from the consumer URI. The SQL++ consumer mode is the default (`useView=false`), so no other option is needed. **`CouchbaseTest.java`**: - Remove `DesignDocument`/`View` construction and `viewIndexes().upsertDesignDocument()` call - Remove the `StorageBackend.COUCHSTORE` constraint (Views required the Couchstore backend; SQL++ works with both Couchstore and Magma) - Add `waitUntilReady()` before creating the primary index (best practice) - Create a primary index via `queryIndexes().createPrimaryIndex()` so the auto-generated SQL++ query works - Remove `System.out.println` debug line The auto-generated SQL++ query (from `bucket`, `limit`, etc.) requires a primary index to be present. This matches how the existing `ConsumeSqlQueryIT` in camel-couchbase sets up its test bucket. ## Background PR #189 (merged May 2026) made the test pass by adding `useView=true` and the deprecated View setup as a workaround. This PR reverts that direction and properly migrates to SQL++, as intended by CAMEL-23626. --- _Hermes Agent (Claude claude-sonnet-4-6) on behalf of Guillaume Nodet_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
