AWS, GCS: Fix issue with Kryo and empty immutable collections#13216
Merged
amogh-jahagirdar merged 1 commit intoJun 5, 2025
Merged
Conversation
bfba154 to
c06303c
Compare
c06303c to
530300b
Compare
talatuyarer
reviewed
Jun 2, 2025
530300b to
6bcd1af
Compare
nandorKollar
reviewed
Jun 3, 2025
| }); | ||
|
|
||
| // make sure credentials can be accessed after kryo serde | ||
| ResolvingFileIO resolvingIO = TestHelpers.KryoHelpers.roundTripSerialize(resolvingFileIO); |
Contributor
There was a problem hiding this comment.
nit: the assertions look the same for both Kryo and Java serialisation, would it make sense to use a 'mini-parametrisation', something like a for loop:
for serialisation in {Kryo, Java}
roundTripSerialize with serialisation
perform common assertion logic
Contributor
Author
There was a problem hiding this comment.
yes that might make sense. We do have the same issue across the codebase so I've opened #13237 to address this
nandorKollar
approved these changes
Jun 4, 2025
amogh-jahagirdar
approved these changes
Jun 5, 2025
amogh-jahagirdar
left a comment
Contributor
There was a problem hiding this comment.
Thanks @nastra , and thank you @talatuyarer @nandorKollar for reviewing. this LGTM
devendra-nr
pushed a commit
to devendra-nr/iceberg
that referenced
this pull request
Dec 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While looking at #13174 I've noticed an issue with Kryo and empty storage credentials.
I've added some tests that reproduce the original issue with Kryo, where the empty immutable collection can't be serded and fails when it is accessed with something like
This applies to the
storageCredentialsinGCSFileIO/S3FileIO/ResolvingFileIO