-
Notifications
You must be signed in to change notification settings - Fork 15
Actually log batch parameters in BackgroundSweeperImpl and friends #2444
Conversation
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.
LGTM, confirmed that the logging spec doesnt call toString
on objects.
@@ -150,7 +150,9 @@ private long grabLocksAndRun(SweepLocks locks) throws InterruptedException { | |||
SweepBatchConfig lastBatchConfig = getAdjustedBatchConfig(); | |||
log.warn("The background sweep job failed unexpectedly with batch config {}." |
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.
doesn't this line and the number of {}
need to have an equivalent change?
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.
Yep, of course. I think I got too excited when I saw that the json params were logged correctly...
Codecov Report
@@ Coverage Diff @@
## develop #2444 +/- ##
=============================================
- Coverage 60.09% 60.08% -0.02%
+ Complexity 4522 3213 -1309
=============================================
Files 833 833
Lines 39414 39395 -19
Branches 4037 4036 -1
=============================================
- Hits 23687 23671 -16
+ Misses 14253 14250 -3
Partials 1474 1474
Continue to review full report at Codecov.
|
Closing in favor of #2475. |
* Better logging for internal customer * Update docs * Copy over #2444
Goals (and why):
{}
. This fixes that and returns the three values (candidate batch size, delete batch size, max no. of cell-ts pairs to examine)Implementation Description (bullets):
Concerns (what feedback would you like?):
Where should we start reviewing?: BackgroundSweeperImpl
Priority (whenever / two weeks / yesterday): soon, please - makes debugging sweep by sniffing its logs very hard
This change is