You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2014/12/11 23:47:13 UTC
[jira] [Resolved] (SPARK-2896) Remove redundant error notification
by results.put() when fetching from remote
[ https://issues.apache.org/jira/browse/SPARK-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-2896.
------------------------------
Resolution: Won't Fix
Another WontFix, given PR discussion.
> Remove redundant error notification by results.put() when fetching from remote
> ------------------------------------------------------------------------------
>
> Key: SPARK-2896
> URL: https://issues.apache.org/jira/browse/SPARK-2896
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 1.0.1
> Reporter: Kousuke Saruta
> Priority: Minor
>
> In BasicBlockFetcherIterator#sendRequest, there is a part of code as follows.
> {code}
> case Failure(exception) => {
> logError("Could not get block(s) from " + cmId, exception)
> for ((blockId, size) <- req.blocks) {
> results.put(new FetchResult(blockId, -1, null))
> }
> }
> {code}
> This is a part of code for notifying error has occurred.
> In this code, results.put is called for all of req.blocks but I think it's redundant; only first error is enough.
> It is because when .iterator.next() returns error result, then it throws FetchFailedException immediately.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org