Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented May 31, 2017

What changes were proposed in this pull request?

IllegalAccessError is a fatal error (a subclass of LinkageError) and its meaning is Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. Throwing a fatal error for AccumulatorV2 is not necessary and is pretty bad because it usually will just kill executors or SparkContext (SPARK-20666 is an example of killing SparkContext due to IllegalAccessError). I think the correct type of exception in AccumulatorV2 should be IllegalStateException.

How was this patch tested?

Jenkins

@zsxwing
Copy link
Member Author

zsxwing commented May 31, 2017

cc @cloud-fan

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Lgtm, I wonder if an Error is thrown anywhere else. Really shouldn't be.

@cloud-fan
Copy link
Contributor

LGTM

@SparkQA
Copy link

SparkQA commented Jun 1, 2017

Test build #77608 has finished for PR 18168 at commit 76601a7.

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

asfgit pushed a commit that referenced this pull request Jun 1, 2017
…tion

## What changes were proposed in this pull request?

`IllegalAccessError` is a fatal error (a subclass of LinkageError) and its meaning is `Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to`. Throwing a fatal error for AccumulatorV2 is not necessary and is pretty bad because it usually will just kill executors or SparkContext ([SPARK-20666](https://issues.apache.org/jira/browse/SPARK-20666) is an example of killing SparkContext due to `IllegalAccessError`). I think the correct type of exception in AccumulatorV2 should be `IllegalStateException`.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes #18168 from zsxwing/SPARK-20940.

(cherry picked from commit 24db358)
Signed-off-by: Shixiong Zhu <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 1, 2017
…tion

## What changes were proposed in this pull request?

`IllegalAccessError` is a fatal error (a subclass of LinkageError) and its meaning is `Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to`. Throwing a fatal error for AccumulatorV2 is not necessary and is pretty bad because it usually will just kill executors or SparkContext ([SPARK-20666](https://issues.apache.org/jira/browse/SPARK-20666) is an example of killing SparkContext due to `IllegalAccessError`). I think the correct type of exception in AccumulatorV2 should be `IllegalStateException`.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes #18168 from zsxwing/SPARK-20940.

(cherry picked from commit 24db358)
Signed-off-by: Shixiong Zhu <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 1, 2017
…tion

## What changes were proposed in this pull request?

`IllegalAccessError` is a fatal error (a subclass of LinkageError) and its meaning is `Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to`. Throwing a fatal error for AccumulatorV2 is not necessary and is pretty bad because it usually will just kill executors or SparkContext ([SPARK-20666](https://issues.apache.org/jira/browse/SPARK-20666) is an example of killing SparkContext due to `IllegalAccessError`). I think the correct type of exception in AccumulatorV2 should be `IllegalStateException`.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes #18168 from zsxwing/SPARK-20940.

(cherry picked from commit 24db358)
Signed-off-by: Shixiong Zhu <[email protected]>
@zsxwing
Copy link
Member Author

zsxwing commented Jun 1, 2017

Thanks! Merging to master, 2.2, 2.1 and 2.0.

@zsxwing
Copy link
Member Author

zsxwing commented Jun 1, 2017

Lgtm, I wonder if an Error is thrown anywhere else. Really shouldn't be.

@srowen IllegalAccessError are not used in other places. However, I didn't search other types of errors.

@asfgit asfgit closed this in 24db358 Jun 1, 2017
@zsxwing zsxwing deleted the SPARK-20940 branch June 1, 2017 00:31
jzhuge pushed a commit to jzhuge/spark that referenced this pull request Aug 20, 2018
…tion

`IllegalAccessError` is a fatal error (a subclass of LinkageError) and its meaning is `Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to`. Throwing a fatal error for AccumulatorV2 is not necessary and is pretty bad because it usually will just kill executors or SparkContext ([SPARK-20666](https://issues.apache.org/jira/browse/SPARK-20666) is an example of killing SparkContext due to `IllegalAccessError`). I think the correct type of exception in AccumulatorV2 should be `IllegalStateException`.

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes apache#18168 from zsxwing/SPARK-20940.

(cherry picked from commit 24db358)
Signed-off-by: Shixiong Zhu <[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