Skip to content

Conversation

@samdvr
Copy link

@samdvr samdvr commented Sep 30, 2018

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

@HyukjinKwon
Copy link
Member

ok to test

@HyukjinKwon
Copy link
Member

@SparkQA
Copy link

SparkQA commented Oct 1, 2018

Test build #96808 has finished for PR 22596 at commit c4b6920.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@samdvr
Copy link
Author

samdvr commented Oct 1, 2018

@HyukjinKwon linked the JIRA to this PR and tests have passed.

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Oct 1, 2018

Thank you for your first contribution, @samdvr . Could you update the title, [SPARK-25576][BUILD][BRANCH-2.2] Fix Java Lint failure?

// 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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setting -> Setting?

@samdvr samdvr changed the title Fix lint failure in 2.2 [SPARK-25576][BUILD][BRANCH-2.2] Fix lint failure Oct 1, 2018
@samdvr
Copy link
Author

samdvr commented Oct 1, 2018

@dongjoon-hyun updated per your comments, thank you.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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).

@SparkQA
Copy link

SparkQA commented Oct 1, 2018

Test build #96823 has finished for PR 22596 at commit 009d4cf.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 2, 2018

Test build #96835 has finished for PR 22596 at commit 2e8836b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a PR to you, @samdvr . Could you merge that, samdvr#1 ?

checkBasic("hello", 5); // 5 * 1 byte chars
checkBasic("大 千 世 界", 7);
checkBasic("︽﹋%", 3); // 3 * 3 bytes chars
checkBasic("\uD83E\uDD19", 1); // 4 bytes char
Copy link
Member

@dongjoon-hyun dongjoon-hyun Oct 2, 2018

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.

@samdvr
Copy link
Author

samdvr commented Oct 2, 2018

@dongjoon-hyun merged, thank you, did not know how to skip lint rule there.

@SparkQA
Copy link

SparkQA commented Oct 2, 2018

Test build #96858 has finished for PR 22596 at commit 07156d4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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.

asfgit pushed a commit that referenced this pull request Oct 2, 2018
## 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]>
@dongjoon-hyun
Copy link
Member

BTW, I chose the most official one, Sam Davarnia <[email protected]>. But, it seems that your GitHub is not happy with that. Next time, you had better be consistent in your commit message.

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]>

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Oct 2, 2018

lint-java passed at 914.

Since it's merged into branch-2.2, could you close this PR? GitHub only closes the PRs against master branch. :)

@samdvr
Copy link
Author

samdvr commented Oct 2, 2018

Thanks will do!

@samdvr samdvr closed this Oct 2, 2018
Willymontaz pushed a commit to criteo-forks/spark that referenced this pull request Sep 26, 2019
## 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]>
Willymontaz pushed a commit to criteo-forks/spark that referenced this pull request Sep 27, 2019
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants