Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Jan 4, 2016

Right now RpcEndpointRef.ask may throw exception in some corner cases, such as calling ask after stopping RpcEnv. It's better to avoid throwing exception from RpcEndpointRef.ask. We can send the exception to the future for ask.

@zsxwing
Copy link
Member Author

zsxwing commented Jan 4, 2016

CC @vanzin @rxin

Most of changes of space changes. You can use https://github.com/apache/spark/pull/10568/files?w=1 to review.

@SparkQA
Copy link

SparkQA commented Jan 4, 2016

Test build #48637 has finished for PR 10568 at commit b2c2ed1.

  • This patch fails from timeout after a configured wait of 250m.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member Author

zsxwing commented Jan 4, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Jan 4, 2016

Test build #48672 has finished for PR 10568 at commit b2c2ed1.

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

@vanzin
Copy link
Contributor

vanzin commented Jan 4, 2016

Not sure I like it. This can mask / make it more difficult to debug real issues, such as unserializable messages.

My preferences would be, in order:

  • avoid calling send / ask when they'd throw the noisy exceptions
  • filter out just the noisy exceptions, not all of them

@zsxwing
Copy link
Member Author

zsxwing commented Jan 5, 2016

Since ask returns a Future, I prefer to send the exception to the Future.

For send, I just submitted a commit to avoid swallowing unserializable exception.

@zsxwing
Copy link
Member Author

zsxwing commented Jan 5, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Jan 5, 2016

Test build #48716 has finished for PR 10568 at commit 7d3095d.

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

@zsxwing
Copy link
Member Author

zsxwing commented Jan 8, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Jan 8, 2016

Test build #49024 has finished for PR 10568 at commit 7d3095d.

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

@zsxwing
Copy link
Member Author

zsxwing commented Jan 23, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Jan 24, 2016

Test build #49938 has finished for PR 10568 at commit 7d3095d.

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

@vanzin
Copy link
Contributor

vanzin commented Jan 25, 2016

This is better, although I'm not exactly a fan of blanket-ignoring exceptions like in the case of a local send. Also, doesn't this overlap with #10881?

@zsxwing
Copy link
Member Author

zsxwing commented Jan 25, 2016

This is better, although I'm not exactly a fan of blanket-ignoring exceptions like in the case of a local send. Also, doesn't this overlap with #10881?

A bit overlap. However, #10881 is for eliminating the annoying stack trace while this one is for catching non fatal errors.

Copy link
Contributor

Choose a reason for hiding this comment

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

Since #10881 is already handling the one case where we don't care about the exception, can you remove this try..catch and just let any other exceptions propagate up the stack?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

@zsxwing zsxwing changed the title [SPARK-12614][Core]Don't throw non fatal exception from send or ask [SPARK-12614][Core]Don't throw non fatal exception from ask Jan 26, 2016
@SparkQA
Copy link

SparkQA commented Jan 27, 2016

Test build #50129 has finished for PR 10568 at commit 424682e.

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

@vanzin
Copy link
Contributor

vanzin commented Jan 27, 2016

LGTM.

@zsxwing
Copy link
Member Author

zsxwing commented Jan 27, 2016

Merging to master, thanks!

@asfgit asfgit closed this in 22662b2 Jan 27, 2016
@zsxwing zsxwing deleted the send-ask-fail branch January 27, 2016 01:29
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.

3 participants