Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

[LW] Don't compare Longs using == #5039

Merged
merged 2 commits into from
Oct 16, 2020
Merged

[LW] Don't compare Longs using == #5039

merged 2 commits into from
Oct 16, 2020

Conversation

Jolyon-S
Copy link
Contributor

Goals (and why):
Read the title.

Implementation Description (bullets):
Use equals instead.

Testing (What was existing testing like? What have you done to improve it?):
Added a test that actually triggers the bad case (when using ==).

Concerns (what feedback would you like?):
DID WE MISS ANYTHING ELSE

Where should we start reviewing?:
ClientLogEvents

Priority (whenever / two weeks / yesterday):
yesterday 🔥

@changelog-app
Copy link

changelog-app bot commented Oct 16, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Fix comparison bug when comparing versions in the lock watch event cache.

Check the box to generate changelog(s)

  • Generate changelog entry

Comment on lines -365 to +370
.isExactlyInstanceOf(TransactionLockWatchFailedException.class);
.isExactlyInstanceOf(TransactionLockWatchFailedException.class)
.hasMessage("Events do not enclose the required versions");

assertThatThrownBy(() -> eventCache.getCommitUpdate(START_TS))
.isExactlyInstanceOf(TransactionLockWatchFailedException.class);
.isExactlyInstanceOf(TransactionLockWatchFailedException.class)
.hasMessage("start or commit info not processed for start timestamp");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive by to make more specific.

@bulldozer-bot bulldozer-bot bot merged commit 246f98c into develop Oct 16, 2020
@bulldozer-bot bulldozer-bot bot deleted the seriously-uhhhh branch October 16, 2020 09:27
@svc-autorelease
Copy link
Collaborator

Released 0.253.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants