-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix logs mismatch between Network GC wait and interval #10776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.20
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10776 +/- ##
=========================================
Coverage 16.12% 16.12%
- Complexity 13210 13212 +2
=========================================
Files 5652 5652
Lines 496467 496468 +1
Branches 60120 60120
=========================================
+ Hits 80044 80071 +27
+ Misses 407515 407483 -32
- Partials 8908 8914 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
engine/schema/src/main/resources/META-INF/db/schema-42000to42010.sql
Outdated
Show resolved
Hide resolved
logger.info("NetworkGarbageCollector uses '{}' seconds for GC interval.", netGcWait); | ||
final int netGcInterval = NumbersUtil.parseInt(_configDao.getValue(NetworkGcInterval.key()), 60); | ||
logger.info("NetworkGarbageCollector uses '{}' seconds for GC wait.", netGcWait); | ||
logger.info("NetworkGarbageCollector uses '{}' seconds for GC interval.", netGcInterval); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps these 2 lines can be unified into a single one: NetworkGarbageCollector uses '{}' seconds for GC wait and '{}' seconds for GC interval
.
engine/schema/src/main/resources/META-INF/db/schema-42000to42010.sql
Outdated
Show resolved
Hide resolved
Update dynamic setting for the network.gc.intervla and the wrong message for wait period.
network.gc.value was mistakenly obtained from network.gc.wait added messages for both gc.wait and gc.internval.
ee5c057
to
e0e9d64
Compare
@blueorangutan package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
|
@@ -3556,7 +3556,8 @@ public void reallyRun() { | |||
|
|||
final List<Long> networkIds = _networksDao.findNetworksToGarbageCollect(); | |||
final int netGcWait = NumbersUtil.parseInt(_configDao.getValue(NetworkGcWait.key()), 60); | |||
logger.info("NetworkGarbageCollector uses '{}' seconds for GC interval.", netGcWait); | |||
final int netGcInterval = NumbersUtil.parseInt(_configDao.getValue(NetworkGcInterval.key()), 60); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the purpose to only log it, why not use the ConfigKey read the value, than use the ConfigDao?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final int netGcInterval = NumbersUtil.parseInt(_configDao.getValue(NetworkGcInterval.key()), 60); | |
final int netGcInterval = NumbersUtil.parseInt(NetworkGcInterval.value()), 60); |
Logs:
2025-04-24 19:04:20,912 INFO [o.a.c.e.o.NetworkOrchestrator] (Network-Scavenger-1:ctx-34a60b9f) (logid:ab827a5e) NetworkGarbageCollector uses '121' seconds for GC interval.
^C
Actual values (with mgmt server restart done after the value changes):