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

   ## Description
   
   DataNode unit-test JVMs do not receive ConfigNode heartbeats. When a 
cache-related test class runs for more than the 20-second metadata lease 
threshold, the singleton `MetadataLeaseManager` fences the local caches and 
causes unrelated test failures such as `TreeViewTest`.
   
   Configure the DataNode unit-test environment to disable the background 
metadata lease check. This only changes `src/test/resources`; production and 
integration-test configurations are unaffected. The metadata lease tests keep 
their coverage because they use independently constructed managers with 
injected clocks.
   
   Setting the test-wide check interval avoids duplicating lease recovery setup 
across every cache test and also protects future unit tests that use the same 
guarded singletons.
   
   ### Verification
   
   - `git diff --check`
   - Targeted Maven verification was attempted locally, but the host was under 
heavy Java build load and did not reach the test phase before timeout; PR 
checks will provide the clean remote verification.
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added a comment explaining why metadata lease checking is disabled for 
unit tests.
   - [x] updated the shared unit-test configuration to cover existing cache 
tests.
   
   ##### Key changed/added classes (or packages if there are too many classes) 
in this PR
   
   - `iotdb-core/datanode/src/test/resources/iotdb-system.properties`


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