[FLINK-29707][cli] Fix possible comparator violation for "flink list"#21127
[FLINK-29707][cli] Fix possible comparator violation for "flink list"#21127mbalassi merged 1 commit intoapache:masterfrom
Conversation
|
I don't get how this can be JDK-specific. Probably related to overflows, no? Is the test replicating the exact case you ran into? |
flink-clients/src/test/java/org/apache/flink/client/cli/CliFrontendListTest.java
Outdated
Show resolved
Hide resolved
|
The fix itself is fine though. |
TBH I'm not sure anymore :) I did not debug it thoroughly, because of the easy fix. I went through this thread. It is not the same thing that happened here, there were mixed objects in the list in those cases and it was explicitly mentioned it works with the same object types.
Yes. |
|
@flinkbot run azure |
7201117 to
f4017d2
Compare
|
@flinkbot run azure |
|
Since @ferenc-csaky made the test more concise (which was the most important concern) and @zentol already gave a 👍 on the logic I am merging this. |
What is the purpose of the change
Fixes a comparator related bug for
flink list, which can occur in JDK8. Probably fixed with JDK9, but I did not validated that.Brief change log
Removed the custom comparator for
JobStatusMessageand replaced it with a safeComparator.comparing(...).Verifying this change
If we put back the removed custom comparator, the updated test with the tricky data will fail.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation