Caideyipi opened a new pull request, #18941:
URL: https://github.com/apache/iotdb/pull/18941
## Description
`IoTDBPipeMetaIT.testAttributeSync` uses `assertDataAlwaysOnEnv` immediately
after `CREATE PIPE`. Schema snapshot transfer and device attribute cache
updates are asynchronous, so the first query can observe inconsistent values
across receiver DataNodes (for example, `[1, 1, null]`) and fail before
synchronization completes.
Use `assertDataEventuallyOnEnv` to wait for the expected merged device
attributes on all queried receiver DataNodes, and document why polling is
needed.
## Validation
```bash
MAVEN_OPTS="-Xms128m -Xmx768m" mvn verify -pl integration-test \
-Pwith-integration-tests,MultiClusterIT2DualTableManualEnhanced \
-DskipUTs -Dit.test=IoTDBPipeMetaIT#testAttributeSync \
-DfailIfNoTests=false -Dfailsafe.failIfNoSpecifiedTests=false \
-DClusterConfigurations=HighPerformanceMode,HighPerformanceMode \
-DintegrationTest.clusterReadyRetryCount=90 -DConfigNodeMaxHeapSize=256 \
-DDataNodeMaxHeapSize=512 -DDataNodeMaxDirectMemorySize=384 \
-Ddevelocity.off=true -ntp
```
JDK 17; two clusters, each with 1 ConfigNode and 3 DataNodes. Tests run: 1,
Failures: 0, Errors: 0, Skipped: 0. Full Maven verification succeeded,
including Spotless, Checkstyle, and license checks.
- [x] Self-reviewed.
--
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]