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

SOLR-14219: Revert changes in OverseerSolrRespose and move serialization #1227

Merged
merged 2 commits into from
Feb 4, 2020

Conversation

tflobbe
Copy link
Member

@tflobbe tflobbe commented Jan 30, 2020

This PR is an attempt to fix the serialization incompatibility introduced by SOLR-14095. @andywebb1975 has proposed a different approach in #1210, but I believe this may better resolve the problem. See discussion in #1210

@andywebb1975
Copy link
Contributor

This looks like a good approach to me - will give it a closer look and try it out in my dev environment tomorrow (UK time)!

@andywebb1975
Copy link
Contributor

The new approach works on my env with a mixed pool - thanks! Note your related commit 5f5ef58 is in branch_8x and not master - I had to drop that out before I could cherry-pick 3c52152, and then apply the same fix to the new OverseerSolrResponseSerializer to get a working 8.5.0 build: andywebb1975@dee5ac5. I assume this backwards-compatibility will disappear in 9.0.0 so maybe this PR should be into branch_8x rather than master?

Andy

@tflobbe
Copy link
Member Author

tflobbe commented Feb 4, 2020

Thanks @andywebb1975. Regarding that commit, I'm wondering what we should do. We could keep the deserialization as an option (otherwise, even with a full restart of a Solr cluster, new nodes wouldn't be able to read these from ZooKeeper), however that still allows people to shoot themselves in the foot and allow this unsafe mode in Solr.

@tflobbe tflobbe merged commit bb90569 into apache:master Feb 4, 2020
@tflobbe tflobbe deleted the solr-14219 branch February 4, 2020 18:27
tflobbe added a commit to tflobbe/lucene-solr-1 that referenced this pull request Feb 4, 2020
…ion (apache#1227)

SOLR-14095 Introduced an issue for rolling restarts (Incompatible Java serialization). This change fixes the compatibility issue while keeping the functionality in SOLR-14095
@andywebb1975
Copy link
Contributor

I see you're working on this right now now so you may have this in hand - but I think the OverseerSolrResponseSerializer in branch_8x needs to use IOUtils because the .readAllBytes() method doesn't exist in Java 8. Presumably that means the master branch needs that too, at least temporarily, followed by a master-only revert to the Java 11 version?

@tflobbe
Copy link
Member Author

tflobbe commented Feb 4, 2020

I Used IOUtils in 8x: 37d4121

@andywebb1975
Copy link
Contributor

Oh yes, thanks - I didn't notice they were different commits. I'm running a build now to test the updated branch_8x in my dev stack.

@andywebb1975
Copy link
Contributor

That's working nicely, thanks Tomás!

@tflobbe
Copy link
Member Author

tflobbe commented Feb 4, 2020

Yes, maybe not the best approach. I resolved the commit issue while resolving the cherry-pick conflict. Thanks for verifying!

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