Caideyipi opened a new pull request, #18316:
URL: https://github.com/apache/iotdb/pull/18316

   ## Description
   
   Fix a race in `IoTDBPipeIdempotentIT.testCreateTableIdempotent`.
   
   `createPipe` returns before the historical table-model database snapshot is 
necessarily applied on the receiver. The test could therefore execute `USE 
test` against the receiver too early and fail with `500: Unknown database test`.
   
   Wait for the exact database to appear on the receiver with 
`TableModelUtils.hasDataBase` before continuing the idempotency assertions.
   
   ## Tests
   
   - `mvn test-compile -DskipTests -pl integration-test -P 
with-integration-tests`
   - `mvn verify -DskipUTs 
-Dit.test=IoTDBPipeIdempotentIT#testCreateTableIdempotent -DfailIfNoTests=false 
-Dfailsafe.failIfNoSpecifiedTests=false -pl integration-test 
-PMultiClusterIT2DualTableManualEnhanced -P with-integration-tests`
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added comments explaining the why and intent of the code.
   - [x] modified an existing integration test to cover the synchronization 
point.
   - [x] been tested in a local dual-cluster IoTDB test environment.
   
   <hr>
   
   ##### Key changed classes
   
   - `IoTDBPipeIdempotentIT`


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