-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-1679] rename degree of parallelism to parallelism & extend documentation about parallelism #488
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
|
Very nice and exhaustive change. One question though: do we want to just rename configuration parameters and methods like that or should we keep the old config keys (parallelization.degree.default) and the old config methods (setDegreeOfParallelism) as well and deprecate them first? I think I am in favour of option 2. |
|
I think this is very API breaking - in my opinion, we should keep the old methods where it breaks the API, or at least keep them for one more version (deprecated). That does not prevent us from merging the fixes to comments and docs. |
|
@uce @StephanEwen I agree with you two that it's better to keep the old API methods and mark them as deprecated while introducing the new ones. When the API has been stabilized and 1.0 comes up, we can remove the old methods. |
9faf78d to
cd347da
Compare
|
I've updated the pull request to include deprecation of the setters/getters and the config parameter. |
|
Thank you for the huge change! Our users will appreciate the more concise naming and improved documentation. +1 to merge |
|
Any objections against merging this? |
|
Are we sure that this is breaking no existing API. No method on DataSet or any descendant of it has been renamed? Also not on other user facing types? |
|
With 236 files, that is hard to assess... I would personally like another +1, from someone who verified that this is not API breaking. But again, PRs of this size are not easily reviewed... |
|
Let me explain how I made out the relevant API facing methods to deprecate. Since I changed all calls to set the parallelism to Java:
Scala:
In these classes I deprecated the methods, and made them call the new methods |
ff29453 to
96900e3
Compare
|
Any other opinions on the API breaking nature of these changes? |
|
I think all changes that are in Other changes (Runtime, Optimizer, tests) can be made without any problem. NOTE: You are also breaking the system configuration. We should change it to use the new parameter, but we should still accept the config values of the old parameter. |
727537c to
1ba3a2d
Compare
|
@StephanEwen That's exactly what I did. |
54ef525 to
3c8de51
Compare
* rename occurrences of degree of parallelism to parallelism * [Dd]egree[ -]of[ -]parallelism -> [pP]arallelism * (DOP|dop) -> [pP]arallelism * paraDegree -> parallelism * degree-of-parallelism -> parallelism * DEGREE_OF_PARALLELISM -> PARALLELISM
old config parameter can still be used OLD parallelization.degree.default NEW parallelism.default
|
Merged in master with 126f9f7 |
https://issues.apache.org/jira/browse/FLINK-1679