ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13248) Parallel library should process all futures even if one of them throws an exception
Date Sat, 26 Sep 2015 20:20:04 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-13248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14909461#comment-14909461
] 

Hudson commented on AMBARI-13248:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #605 (See [https://builds.apache.org/job/Ambari-branch-2.1/605/])
AMBARI-13248: Parallel library should process all futures even if one of them throws an exception
(jluniya) (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=b65c954e5c8d2dc71effaf1f15d19a8a402df0af)
* ambari-server/src/main/java/org/apache/ambari/server/utils/Parallel.java
* ambari-server/src/test/java/org/apache/ambari/server/utils/TestParallel.java


> Parallel library should process all futures even if one of them throws an exception
> -----------------------------------------------------------------------------------
>
>                 Key: AMBARI-13248
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13248
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent, ambari-server
>    Affects Versions: 2.1.2
>            Reporter: Jayush Luniya
>            Assignee: Jayush Luniya
>            Priority: Blocker
>             Fix For: 2.1.2
>
>
> - Parallel library should process all futures even if one of them throws an exception
> - Consider the case where we spawn 1000 future requests and the very 1st thread throws
an exception. 
> - Since the exception handling is outside the for loop we would end up returning a result
with all nulls to the caller. 
> - In getStagesInProgress() as a fall back we check the ParallelLoopResult and get all
the missing results sequentially, so this could lead to the main thread and the spawned threads
will process same requests in parallel and could lead to issues.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message