-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-25576][BUILD][BRANCH-2.2] Fix lint failure #22596
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
|
ok to test |
|
Can you link the JIRA https://issues.apache.org/jira/browse/SPARK-25576 ? Please see https://spark.apache.org/contributing.html |
|
Test build #96808 has finished for PR 22596 at commit
|
|
@HyukjinKwon linked the JIRA to this PR and tests have passed. |
|
Thank you for your first contribution, @samdvr . Could you update the title, |
| // setting the array to null also indicates that it has already been de-allocated which prevents a double de-allocation in free(). | ||
| // which in turn access this instance and eventually re-enter this method | ||
| // and try to free the array again. | ||
| // by setting the array to null and its length to 0 |
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.
by -> By?
| // and try to free the array again. | ||
| // by setting the array to null and its length to 0 | ||
| // we effectively make the spill code-path a no-op. | ||
| // setting the array to null also indicates that it has already been |
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.
setting -> Setting?
|
@dongjoon-hyun updated per your comments, thank you. |
dongjoon-hyun
left a comment
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.
Actually, this issue aims to pass dev/lint-java. For now, this PR seems to be unable to pass the Jenkins. Could you check it by run dev/lint-java in your spark home directory?
$ dev/lint-java
exec: curl --progress-bar -L https://downloads.typesafe.com/zinc/0.3.11/zinc-0.3.11.tgz
######################################################################## 100.0%
exec: curl --progress-bar -L https://downloads.typesafe.com/scala/2.11.8/scala-2.11.8.tgz
######################################################################## 100.0%
Using `mvn` from path: /usr/local/bin/mvn
Checkstyle checks failed at following occurrences:
[ERROR] src/test/java/org/apache/spark/unsafe/types/UTF8StringSuite.java:[66] (misc) AvoidEscapedUnicodeCharacters: Unicode escape(s) usage should be avoided.
[ERROR] src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java:[177] (regexp) RegexpSingleline: No trailing whitespace allowed.
[ERROR] src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java:[179] (regexp) RegexpSingleline: No trailing whitespace allowed.
[ERROR] src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java:[181] (regexp) RegexpSingleline: No trailing whitespace allowed.
[ERROR] src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:[473] (regexp) RegexpSingleline: No trailing whitespace allowed.
[ERROR] src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:[478] (regexp) RegexpSingleline: No trailing whitespace allowed.
[ERROR] src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:[485] (regexp) RegexpSingleline: No trailing whitespace allowed.
[ERROR] src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:[489] (sizes) LineLength: Line is longer than 100 characters (found 120).
[ERROR] src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:[491] (sizes) LineLength: Line is longer than 100 characters (found 114).
[ERROR] src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorterSuite.java:[186] (sizes) LineLength: Line is longer than 100 characters (found 116).|
Test build #96823 has finished for PR 22596 at commit
|
|
Test build #96835 has finished for PR 22596 at commit
|
dongjoon-hyun
left a comment
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.
| checkBasic("hello", 5); // 5 * 1 byte chars | ||
| checkBasic("大 千 世 界", 7); | ||
| checkBasic("︽﹋%", 3); // 3 * 3 bytes chars | ||
| checkBasic("\uD83E\uDD19", 1); // 4 bytes char |
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.
We should not remove test coverage. The correct fix is in my PR.
|
@dongjoon-hyun merged, thank you, did not know how to skip lint rule there. |
|
Test build #96858 has finished for PR 22596 at commit
|
dongjoon-hyun
left a comment
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.
+1, LGTM. Thank you, @samdvr .
Merged to branch-2.2.
## What changes were proposed in this pull request? Line length fixes and ## How was this patch tested? Manually verified, but will ensure jenkins lint passes before merging Related Job: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Compile/job/spark-branch-2.2-lint/913/console Closes #22596 from samdvr/SPARK-25576. Lead-authored-by: Sam Davarnia <[email protected]> Co-authored-by: Sam Davarnia <> Co-authored-by: Dongjoon Hyun <[email protected]> Co-authored-by: Sam Davarnia <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
|
BTW, I chose the most official one, |
|
Since it's merged into |
|
Thanks will do! |
## What changes were proposed in this pull request? Line length fixes and ## How was this patch tested? Manually verified, but will ensure jenkins lint passes before merging Related Job: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Compile/job/spark-branch-2.2-lint/913/console Closes apache#22596 from samdvr/SPARK-25576. Lead-authored-by: Sam Davarnia <[email protected]> Co-authored-by: Sam Davarnia <> Co-authored-by: Dongjoon Hyun <[email protected]> Co-authored-by: Sam Davarnia <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
## What changes were proposed in this pull request? Line length fixes and ## How was this patch tested? Manually verified, but will ensure jenkins lint passes before merging Related Job: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Compile/job/spark-branch-2.2-lint/913/console Closes apache#22596 from samdvr/SPARK-25576. Lead-authored-by: Sam Davarnia <[email protected]> Co-authored-by: Sam Davarnia <> Co-authored-by: Dongjoon Hyun <[email protected]> Co-authored-by: Sam Davarnia <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
Line length fixes and
How was this patch tested?
Manually verified, but will ensure jenkins lint passes before merging
Related Job:
https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Compile/job/spark-branch-2.2-lint/913/console