yuqi1129 opened a new pull request, #12460:
URL: https://github.com/apache/gravitino/pull/12460
### What changes were proposed in this pull request?
Add real two-node entity cache consistency tests to the existing
multi-instance workflow.
The tests:
- Enable entity caches on both Gravitino instances with a one-second
change-log polling interval.
- Cover METALAKE, CATALOG, SCHEMA, TABLE, TOPIC, VIEW, FILESET, TAG, POLICY,
and JOB caches.
- Exercise alter, rename, drop, cascade drop, disable/enable, same-name
recreation, rapid updates, cross-type batches, reverse-direction propagation,
and node restart.
- Add Kafka and Iceberg JDBC backends for topic, table, view, and
hierarchical schema coverage.
- Keep the existing authorization consistency tests as a separate workflow
step.
### Why are the changes needed?
Cross-node cache invalidation was previously covered only by in-process unit
tests. This adds end-to-end coverage using two real Gravitino server processes
backed by the same relational store.
Fix: #12418
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
- Ran the real two-process entity cache suite with MySQL and Kafka:
- 52 dedicated consistency cases
- 223 assertions
- 0 failures
- Validated the two node-restart consistency cases separately.
- Ran `./gradlew spotlessApply`.
- Validated shell syntax, workflow YAML parsing, and `git diff --check`.
--
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]