-
Notifications
You must be signed in to change notification settings - Fork 666
kryo5 upgrade #3425
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
base: main
Are you sure you want to change the base?
kryo5 upgrade #3425
Conversation
c92a786 to
78d19a2
Compare
|
I was not able to load a spatial-index created with kryo4 using kryo5 - it fails to deserialize the ConcurrentHashMap whose registration was missing. Kryo4 auto-registered classes in that case, whereas kryo5 by default requires registration. There is a flag The question is whether to schedule a kryo5 upgrade for Jena6. |
Probably, yes. It is safer. A major version change to Jena comes every 2 years when the supported java version changes so the opportunity is now. Running both, while possible, is a maintenance cost. Even if Kryo4 works now, bug fixes and security fixes will likely be to kryo5 first. I don't see much development around kryo4. Choosing Kryo5 does not impact applications using Kryo4 elsewhere in their codebase. |
|
No rush - trying to get all the "bumps" done early in the 6. cycle,; this one is isolated so not getting in the way of anything outside of geosparql - can this merged now or are there other changes necessary? |
78d19a2 to
b699cf3
Compare
|
There are a couple of small QoL improvements that I should add to avoid confusion. I think it is still possible to read the metadata (from kryo's perspective a plain string) of spatial indexes created with kryo4 using kryo5.
|
f931b04 to
0d4ffa4
Compare
0d4ffa4 to
9d43736
Compare
|
I added the version check - with an old index it now outputs: |
GitHub issue resolved (no issue created yet).
Pull request Description: Upgrade to kryo5.
Need yet to test whether spatial indexes created with kryo4 can be loaded with kryo5. Also, there was an inconsistent use ofConcurrentHashMapandLinkedHashMapthat was revealed when a test case failed with kryo5.In my first experiments I was not able to load a spatial index created with kryo4 using kryo5.
[ ] Tests are included.By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.
See the Apache Jena "Contributing" guide.