-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[WIP][SPARK-30694][SHUFFLE]If exception occured while fetching blocks by ExternalBlockClient, fail early when External Shuffle Service is not alive #27419
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
Changes from 1 commit
b9c3075
32d2be8
40dd076
c9061c5
2c4995e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,14 +103,22 @@ public void fetchBlocks( | |
| try { | ||
| RetryingBlockFetcher.BlockFetchStarter blockFetchStarter = | ||
| (blockIds1, listener1) -> { | ||
| // Unless this client is closed. | ||
| if (clientFactory != null) { | ||
| TransportClient client = clientFactory.createClient(host, port); | ||
| new OneForOneBlockFetcher(client, appId, execId, | ||
| blockIds1, listener1, conf, downloadFileManager).start(); | ||
| } else { | ||
| logger.info("This clientFactory was closed. Skipping further block fetch retries."); | ||
| } | ||
| try{ | ||
| // Unless this client is closed. | ||
| if (clientFactory != null) { | ||
| TransportClient client = clientFactory.createClient(host, port); | ||
| new OneForOneBlockFetcher(client, appId, execId, | ||
| blockIds1, listener1, conf, downloadFileManager).start(); | ||
| } else { | ||
| logger.info("This clientFactory was closed. Skipping further block fetch retries."); | ||
| } | ||
| } catch (IOException e) { | ||
| logger.info("The relative remote external shuffle service (host: " + host + "," + | ||
| "port: "+ port + "), which maintains the block data can't been connected."); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so what you do is just printing a log when error happens?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, I miss the way to stop retry. May be we should add some way to check external shuffle service alive? |
||
| throw e; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @cloud-fan But this module don't dependency Is what I want to do. And seem we don't have way to check external shuffle service is alive. |
||
| } catch (Exception e) { | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| int maxRetries = conf.maxIORetries(); | ||
|
|
||
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.
shall we only add try-catch to wrap this line?
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.
It's OK to only wrap this line.
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.
Updated, hope for review current change