Skip to content
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

[Sandbox-on-X] Fix record time assignment #12706

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

tudor-da
Copy link
Contributor

@tudor-da tudor-da commented Feb 2, 2022

This PR fixes a potential inconsistency wrt to deduplication behavior and accepted transactions' record time. More specifically, the inconsistency was stemming from the fact that deduplication relied on its own record time which was different from the actual assigned record time.

Additionally to the fix, a small refactoring was applied to SequenceImpl.

changelog_begin
changelog_end

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description
  • If you mean to change the status of a component, please make sure you keep the Component Status page up to date.

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

@tudor-da tudor-da force-pushed the tudor/sox/fix-record-time-assignment branch 3 times, most recently from 469c502 to cdb9319 Compare February 2, 2022 11:00
changelog_begin
changelog_end
@tudor-da tudor-da force-pushed the tudor/sox/fix-record-time-assignment branch from cdb9319 to 8c75979 Compare February 2, 2022 11:01
@tudor-da tudor-da marked this pull request as ready for review February 2, 2022 11:08
@tudor-da tudor-da requested a review from a team as a code owner February 2, 2022 11:08
@@ -19,33 +19,48 @@ import scala.util.chaining._
class DeduplicateStateSpec extends AnyFlatSpec with Matchers {
behavior of classOf[DeduplicationState].getSimpleName

private val initialTime = Time.Timestamp.now()
private val t0 = Time.Timestamp.now()
Copy link
Contributor

Choose a reason for hiding this comment

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

Those tests have become more transparent now

@tudor-da tudor-da merged commit 784faf6 into main Feb 2, 2022
@tudor-da tudor-da deleted the tudor/sox/fix-record-time-assignment branch February 2, 2022 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants