Skip to content

Fix refresh logic in SnapshotProducer subclasses.#4

Merged
prodeezy merged 1 commit into
rominparekh:cherrypick.snapshotfrom
rdblue:cherry-pick-snapshot
Feb 4, 2020
Merged

Fix refresh logic in SnapshotProducer subclasses.#4
prodeezy merged 1 commit into
rominparekh:cherrypick.snapshotfrom
rdblue:cherry-pick-snapshot

Conversation

@rdblue
Copy link
Copy Markdown

@rdblue rdblue commented Feb 3, 2020

This fixes the refresh logic in SnapshotProducer and its subclass, SnapshotManager. The problem was that when snapshot manager called ops.refresh(), the base snapshot referenced by SnapshotProducer was not updated, so the actual commit always used a stale snapshot and would fail.

This happened in tests that used rollback, which refreshes metadata. The reason why it happens in tests that do not have commit conflicts is fixed by this issue: apache#774

Copy link
Copy Markdown
Collaborator

@prodeezy prodeezy left a comment

Choose a reason for hiding this comment

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

lgtm

@prodeezy prodeezy merged commit 6ca3a63 into rominparekh:cherrypick.snapshot Feb 4, 2020
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