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

transactional recovery in initPid #163

Merged
merged 2 commits into from
Apr 18, 2017

Conversation

dguy
Copy link

@dguy dguy commented Apr 13, 2017

No description provided.

@dguy
Copy link
Author

dguy commented Apr 13, 2017

@apurvam @mjsax, would you mind having a look over this for me? Make sure i've interpreted the doc correctly etc. thanks

Copy link

@apurvam apurvam left a comment

Choose a reason for hiding this comment

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

OVerall looks good to me barring one comment.. We can merge it to the main review and then continue with the rest of the review.

}), Seq(metadata.pid))
} else {
// reset the metadata and respond with new epoch
// TODO: should this append to the transaction log?, i.e., it doesn't above in the None case
Copy link

Choose a reason for hiding this comment

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

Not sure I follow this comment. If you are bumping the epoch, the new epoch must go to the transaction log. Otherwise the epoch will 'roll backward` if the coordinator moves. Or does this comment mean something else?

Copy link

@apurvam apurvam Apr 14, 2017

Choose a reason for hiding this comment

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

See here for the note on how to handle the initPidRequest. the case above when there is no previous record also needs to be updated. It is a bug.

https://docs.google.com/document/d/11Jqy_GjUGtdXJK94XGsEIK7CP1SnQGdp2eF0wSw9ra8/edit#bookmark=id.jro89lml46du

@dguy dguy merged commit cdd5b2f into confluentinc:exactly-once-tc Apr 18, 2017
@dguy dguy deleted the tc-transaction-recovery branch April 18, 2017 10:40
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