Repository navigation
Increase Edge metadata lease timeout to ten years - #19165
Open
JackieTien97 wants to merge 1 commit into
Open
JackieTien97 wants to merge 1 commit into
JackieTien97 wants to merge 1 commit into
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19165 +/- ##
============================================
- Coverage 48.53% 48.53% -0.01%
Complexity 635 635
============================================
Files 5573 5573
Lines 412215 412284 +69
Branches 54338 54350 +12
============================================
+ Hits 200062 200084 +22
- Misses 212153 212200 +47 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Description
Long JVM pauses can exceed Edge's default 20-second metadata lease and trigger DataNode cache fencing and recovery even though ConfigNode and DataNode share the same JVM. Set the Edge default
metadata_lease_fence_msto315360000000(ten 365-day years) to effectively disable lease expiry for the combined process.The finite value leaves headroom for the ConfigNode's five-second margin and conversion to nanoseconds. It also extends the ConfigNode's cache-invalidation wait when a service is unreachable. The standard deployment default remains 20 seconds.
Validation
mvn clean package -DskipTests -pl distribution -am— passed.mvn verify -Drat.skip=true -DskipUTs -Dit.test=IoTDBEdgeBasicIT -DfailIfNoTests=false -Dfailsafe.failIfNoSpecifiedTests=false -pl integration-test -am -P EdgeIT -P with-integration-tests— 7 tests passed, none failed or skipped; startup, Tree/Table reads and writes, concurrent queries, and shutdown verified using the generated Edge package.long.The initial integration-test invocation was blocked by RAT scanning seven pre-existing, untracked local files. The successful run skipped RAT; those files are not included in this PR.
This PR has: