-
Notifications
You must be signed in to change notification settings - Fork 15
[PDS-158510] Improved Detection of Orphaned Sentinels #5231
Conversation
Generate changelog in
|
…db into jkong/sentinels-eveywhere
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.
Paired on most of this.
A few nits. I think perf is fine, took a look at the metrics for encountering naked sentinels and it's not very common. The reads are going to dominate the perf of this either way and there is no way around that.
} | ||
|
||
@Test | ||
public void getSweepSentinelUnderEarlyUncommittedWriteDoesNotThrow() { |
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.
should swap the names of this and the following test
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.
ah, you're right!
|
||
@SuppressWarnings("unchecked") // ArgumentCaptor | ||
@Test | ||
public void getSentinelValuesStressTest() { |
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.
nice 👍
.collect(Collectors.toList()); | ||
assertThat(stressTestRequests.get(index)).hasSizeLessThan(previousTimestamps.size()); | ||
} | ||
} |
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.
assert that retry succeeds?
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, makes sense - added.
Released 0.290.2 |
Goals (and why):
Implementation Description (bullets):
Testing (What was existing testing like? What have you done to improve it?):
Added a new group of tests.
Concerns (what feedback would you like?):
Not much. Is perf a concern?
Where should we start reviewing?: Probably start with the tests
Priority (whenever / two weeks / yesterday): yesterday