gnodet-bot commented on PR #27702:
URL: https://github.com/apache/camel/pull/27702#issuecomment-6121588700

   ## ❌ Local IT results for `516e784821ecd4272a826f2485ee37217769d797`
   
   Integration tests failed with couchbase 8.0.3. The failures appear to be 
**behavioral changes** introduced by Couchbase 8.0.x that require human review.
   
   **Test-infra module**: `camel-test-infra-couchbase`
   **Component tested**: `camel-couchbase`
   
   ### Failures
   
   | Test | Error | Root cause |
   |---|---|---|
   | `ConsumeSqlQueryIT` | `ServiceNotAvailableException: The query service is 
not available` | Couchbase 8.0 changes service startup order; bucket created 
without explicit storage backend now defaults to Magma instead of Couchstore |
   | `ConsumeMessagesWithLimitIT` | `Expected: <10> but was: <0>` | MapReduce 
view query returns no results |
   | `ConsumeResumeStrategyIT` | `Expected: <10> but was: <0>` | MapReduce view 
query returns no results |
   
   ### Root cause analysis
   
   **Couchbase 8.0 breaking changes:**
   
   1. **New default storage backend**: Couchbase 8.0 changed the default bucket 
storage backend from Couchstore to Magma (128 vBuckets). `ConsumeSqlQueryIT` 
creates a bucket without specifying `storageBackend`, which now defaults to 
Magma. The query service appears to not be available immediately after cluster 
init with Magma buckets.
   
   2. **View query failures**: `ConsumeMessagesWithLimitIT` and 
`ConsumeResumeStrategyIT` use MapReduce views. The base class 
`CouchbaseIntegrationTestBase` correctly specifies `StorageBackend.COUCHSTORE` 
— but view queries return 0 results, suggesting views indexing behavior has 
changed or the view service is slower to initialize in 8.0.3.
   
   Note: MapReduce Views are deprecated since Couchbase Server 7.0 and will 
eventually be removed.
   
   ### Recommended fixes (requires human review)
   
   - `ConsumeSqlQueryIT`: Add `waitForQueryService()` or retry logic before 
`createPrimaryIndex`, OR explicitly set `StorageBackend.COUCHSTORE` to match 
the old default behavior.
   - `ConsumeMessagesWithLimitIT` / `ConsumeResumeStrategyIT`: Investigate if 
the view port is exposed and views are indexed before assertions. May need 
increased wait time or migration to SQL++ queries.
   
   <details><summary>Test output (camel-couchbase)</summary>
   
   ```
   [ERROR] Tests run: 1, Failures: 1, Errors: 0 -- in ConsumeMessagesWithLimitIT
   [ERROR]   ConsumeMessagesWithLimitIT.testQueryForBeers:47 mock://result 
Received message count. Expected: <10> but was: <0>
   
   [ERROR] Tests run: 1, Failures: 1, Errors: 0 -- in ConsumeResumeStrategyIT
   [ERROR]   ConsumeResumeStrategyIT.testQueryForBeers:75 mock://result 
Received message count. Expected: <10> but was: <0>
   
   [ERROR] Tests run: 1, Failures: 0, Errors: 1 -- in ConsumeSqlQueryIT
   [ERROR]   ConsumeSqlQueryIT.setUpCouchbase:70 » ServiceNotAvailable The 
query service is not available in the cluster.
            {"requestType":"QueryRequest","statement":"CREATE PRIMARY INDEX ON 
`sqlBucket6`","timeoutMs":75000}
   
   [ERROR] Tests run: 3, Failures: 2, Errors: 1, Skipped: 0
   [INFO] BUILD FAILURE
   [INFO] Total time:  04:59 min
   ```
   
   </details>
   
   > _Local integration tests run by Hermes on behalf of @gnodet_
   > _Tests run without `-Dci.env.name` to include ITs disabled on GitHub 
Actions CI_


-- 
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]

Reply via email to