Conversation
Co-authored-by: Stefania Alborghetti <stef1927@users.noreply.github.com>
|
Needed to fix CNDB |
| if (tombstones.checkAndTriggerWarning()) | ||
| metric.tombstoneWarnings.inc(); | ||
| metric.incLiveRows(liveRows); | ||
| metric.incTombstones(tombstones.get(), tombstones.checkAndTriggerWarning()); |
There was a problem hiding this comment.
This is the important part for the CNDB SingleCompactorTest.garbageCollectionTest
| metric.tombstoneScannedHistogram.update(tombstones.get()); | ||
| metric.liveScannedHistogram.update(liveRows); | ||
|
|
||
| if (tombstones.checkAndTriggerWarning()) |
There was a problem hiding this comment.
Can we really get rid of the guardrail check here?
There was a problem hiding this comment.
Sorry, I should have mentioned it's previously been moved into TableMetrics.incTombstones:
public void incTombstones(long tombstones, boolean triggerWarning)
{
tombstoneScannedHistogram.update(tombstones);
tombstoneScannedCounter.inc(tombstones);
if (triggerWarning)
tombstoneWarnings.inc();
}
and metric.liveScannedHistogram.update(liveRows) is now in TableMetrics.incLiveRows
|
Pretty sure this new test failure is unrelated @djatnieks . I hit it too in my PR. |
|
Kudos, SonarCloud Quality Gate passed! |
@mfleming I've tried re-running the PR gate build several times without success - do you think we can merge it anyway? |
|
Yeah, merge it anyway. I've seen |
Co-authored-by: Stefania Alborghetti <stef1927@users.noreply.github.com> (cherry picked from commit 3039232)
Co-authored-by: Stefania Alborghetti <stef1927@users.noreply.github.com> (cherry picked from commit 3039232)









Co-authored-by: Stefania Alborghetti stef1927@users.noreply.github.com