-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32283][CORE] Kryo should support multiple user registrators #29123
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
Conversation
|
Test build #125880 has finished for PR 29123 at commit
|
|
retest this please |
|
Retest this please |
|
Test build #125928 has finished for PR 29123 at commit
|
|
cc @cloud-fan |
| val KRYO_USER_REGISTRATORS = ConfigBuilder("spark.kryo.registrator") | ||
| .version("0.5.0") | ||
| .stringConf | ||
| .createOptional |
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.
do you know which commit broke it?
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.
|
thanks, merging to master/3.0! |
### What changes were proposed in this pull request? `spark.kryo.registrator` in 3.0 has a regression problem. From [SPARK-12080](https://issues.apache.org/jira/browse/SPARK-12080), it supports multiple user registrators by ```scala private val userRegistrators = conf.get("spark.kryo.registrator", "") .split(',').map(_.trim) .filter(!_.isEmpty) ``` But it donsn't work in 3.0. Fix it by `toSequence` in `Kryo.scala` ### Why are the changes needed? In previous Spark version (2.x), it supported multiple user registrators by ```scala private val userRegistrators = conf.get("spark.kryo.registrator", "") .split(',').map(_.trim) .filter(!_.isEmpty) ``` But it doesn't work in 3.0. It's should be a regression. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existed unit tests. Closes #29123 from LantaoJin/SPARK-32283. Authored-by: LantaoJin <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit 26e6574) Signed-off-by: Wenchen Fan <[email protected]>
|
+1, late LGTM. Thank you, @LantaoJin and @cloud-fan . cc @HeartSaVioR and @srowen |
|
Nice find and thanks for fixing this! I have no idea why I took different way to deal with KRYO_USER_REGISTRATORS and KRYO_CLASSES_TO_REGISTER... I guess it was just a mistake. My bad. |
What changes were proposed in this pull request?
spark.kryo.registratorin 3.0 has a regression problem. From SPARK-12080, it supports multiple user registrators byBut it donsn't work in 3.0. Fix it by
toSequenceinKryo.scalaWhy are the changes needed?
In previous Spark version (2.x), it supported multiple user registrators by
But it doesn't work in 3.0. It's should be a regression.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existed unit tests.