JackieTien97 opened a new pull request, #18697:
URL: https://github.com/apache/iotdb/pull/18697
## Description
Backport of #18694 (commit 54b9a4bf582d375e2355307804890d9f4f67bc72) to
`dev/1.3`.
A LAST query that includes devices without data partitions can initialize
the shared device schema cache with `root.__virtual`. Subsequent exact-path
queries can then fail with `No matched database`.
Disable LAST cache initialization and updates for `VirtualDataRegion`,
covering both aligned and non-aligned series while preserving the empty
execution branch and the existing cache policy for real data regions.
Adapt the unit-test fixture to the 1.3 cache and execution-context APIs,
including the singleton empty-cache marker. Keep regression coverage for cold
and warm caches, time-filter boundaries, repeated mixed LAST queries, and
writes to previously empty devices.
## Validation
- The 24 new unit cases reproduce 8 failures on unmodified `dev/1.3`; all
pass with the fix.
- Full-reactor `clean verify` passed, including 32 unit cases and 2
integration tests on a 1 ConfigNode / 1 DataNode cluster.
- Full-reactor clean packaging with the Chinese locale passed, including
test compilation.
```bash
mvn clean verify -P with-integration-tests \
-Dtest=LastQueryCacheTest,UpdateLastCacheOperatorTest,DataNodeSchemaCacheTest \
-Dit.test=IoTDBLastQueryVirtualRegionIT \
-DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false \
-Dfailsafe.failIfNoSpecifiedTests=false
mvn clean package -DskipTests -P with-zh-locale
```
This PR has:
- [x] been self-reviewed.
- [x] added comments explaining the intent of the change.
- [x] added unit tests covering the affected code paths.
- [x] added integration tests.
- [x] been tested in a test IoTDB cluster.
### Key changed/added classes
- `OperatorTreeGenerator`
- `LastQueryCacheTest`
- `IoTDBLastQueryVirtualRegionIT`
--
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]