Skip to content

Points inconsistency during cancel of optimization - #5527

Merged
generall merged 3 commits into
devfrom
optimization-cancel-inconsistency
Nov 27, 2024
Merged

generall merged 3 commits into
devfrom
optimization-cancel-inconsistency

Conversation

@generall

@generall generall commented Nov 26, 2024 •

Copy link
Copy Markdown
Member
  • test to demonstrate inconsistency failure during optimization

@generall
generall requested a review from timvisee November 26, 2024 20:16
@generall generall changed the title test to demonstrate inconsistency failure during optimization Points inconsistency during cancel of optimization Nov 26, 2024
@timvisee

timvisee commented Nov 27, 2024 •

Copy link
Copy Markdown
Member

Implemented a fix in #5528 patching apply_points also fixing this test.

@generall has another patch for proxy segments: #5531

timvisee and others added 2 commits November 27, 2024 15:13
#5528)

* Patch apply points, only apply point operations to latest point version

* Simplify test, we don't need owned strings in JSON macro

* Use ahash in apply points because we map to simple numbers

* Minor improvements
* preserve the update version before doing move_if_exists in proxy

* Simplify move_if_exists with flat if statements and early return

* Fix inverted condition, consider deleted if delete is new

* Use hash map keys iterator as more idiomatic Rust

---------

Co-authored-by: timvisee <[email protected]>
Co-authored-by: Tim Visée <[email protected]>

@timvisee timvisee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🔥

@generall
generall merged commit a653a36 into dev Nov 27, 2024
@generall
generall deleted the optimization-cancel-inconsistency branch November 27, 2024 15:47
coszio pushed a commit that referenced this pull request Dec 2, 2024
* test to demonstrate inconsistency failure during optimization

* Fix apply points mixing point versions, only apply operation to latest (#5528)

* Patch apply points, only apply point operations to latest point version

* Simplify test, we don't need owned strings in JSON macro

* Use ahash in apply points because we map to simple numbers

* Minor improvements

* preserve the update version before doing move_if_exists in proxy (#5531)

* preserve the update version before doing move_if_exists in proxy

* Simplify move_if_exists with flat if statements and early return

* Fix inverted condition, consider deleted if delete is new

* Use hash map keys iterator as more idiomatic Rust

---------

Co-authored-by: timvisee <[email protected]>
Co-authored-by: Tim Visée <[email protected]>

---------

Co-authored-by: Tim Visée <[email protected]>
Co-authored-by: timvisee <[email protected]>
timvisee added a commit that referenced this pull request Dec 9, 2024
* test to demonstrate inconsistency failure during optimization

* Fix apply points mixing point versions, only apply operation to latest (#5528)

* Patch apply points, only apply point operations to latest point version

* Simplify test, we don't need owned strings in JSON macro

* Use ahash in apply points because we map to simple numbers

* Minor improvements

* preserve the update version before doing move_if_exists in proxy (#5531)

* preserve the update version before doing move_if_exists in proxy

* Simplify move_if_exists with flat if statements and early return

* Fix inverted condition, consider deleted if delete is new

* Use hash map keys iterator as more idiomatic Rust

---------

Co-authored-by: timvisee <[email protected]>
Co-authored-by: Tim Visée <[email protected]>

---------

Co-authored-by: Tim Visée <[email protected]>
Co-authored-by: timvisee <[email protected]>
@timvisee timvisee mentioned this pull request Dec 9, 2024
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