-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make sure GetVersion never yields #2376
Make sure GetVersion never yields #2376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense 👍
I'm assuming this means you decided against doing the whole two-phase thing?
* @return True if the identifier is not present in history | ||
*/ | ||
boolean getVersion( | ||
Integer getVersion( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstring needs update
* @return True if the identifier is not present in history | ||
*/ | ||
public boolean getVersion( | ||
public Integer getVersion( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstring needs update here too
@@ -75,6 +75,9 @@ public void testGetVersionOutOfOrderFail() { | |||
assertEquals( | |||
NonDeterministicException.class.getName(), | |||
((ApplicationFailure) e.getCause().getCause().getCause()).getType()); | |||
assertEquals( | |||
"[TMPRL1100] getVersion call before the existing version marker event. The most probable cause is retroactive addition of a getVersion call with an existing 'changeId'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"[TMPRL1100] getVersion call before the existing version marker event. The most probable cause is retroactive addition of a getVersion call with an existing 'changeId'", | |
"[TMPRL1100] getVersion called before the existing version marker event. The most probable cause is retroactive addition of a getVersion call with an existing 'changeId'", |
@Sushisource not sure what you mean by "the whole two-phase thing"? |
Doing the change in two parts so rolling back one version would work. But, maybe I'm actually getting this mixed up with a different change. Doesn't matter either way. |
70c1bbe
to
fef88d3
Compare
Make sure GetVersion never yields