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
ISPN-12646 IllegalArgumentException when doing Rolling Upgrades on transactional caches #9033
ISPN-12646 IllegalArgumentException when doing Rolling Upgrades on transactional caches #9033
Conversation
Failures unrelated |
Merged from other PR |
@tristantarrant The other PR didn't have all the commits from this one, I will rebase |
oops |
80393ac
to
809f2ff
Compare
should be ready to merge @tristantarrant |
Integer DISCONNECT_REMOTE_STORE = 1902; | ||
|
||
Integer ENTRY_WRITER = 1902; | ||
Integer DISCONNECT_REMOTE_STORE = 1903; |
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.
why increasing the DISCONNECT_REMOTE_STORE id? couldn't ENTRY_WRITER be 1093?
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.
No reason, it was a merge issue, let me put it back
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.
fixed
…ansactional caches
809f2ff
to
140929d
Compare
@@ -102,6 +103,9 @@ private boolean skewed(IncrementableEntryVersion prevVersion, EntryVersion versi | |||
} | |||
IncrementableEntryVersion prevVersion = versionFromEntry(ice); | |||
if (prevVersion == null) { | |||
if (rollingUpgrade) { | |||
return versionGenerator.nonExistingVersion(); |
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.
Wouldn't it be better to return nonExistingVersion()
every time, without adding the rollingUpgrade
parameter?
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.
I'm not sure, wdyt @pruivo ?
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.
we never have prevVersion==null
except for the rolling upgrade scenario.
Hot Rod isn't aware of the internal version and Infinispan stores the entry from RemoteStore as is.
I would leave the exception there at least to make sure there are no errors.
integrated! thanks @gustavonalle ! |
https://issues.redhat.com/browse/ISPN-12646
Forward port from #9007