You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by XuTingjun <gi...@git.apache.org> on 2015/04/17 08:39:58 UTC

[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

GitHub user XuTingjun opened a pull request:

    https://github.com/apache/spark/pull/5550

    [SPARK-6973]modify total stages/tasks on the allJobsPage

    Though totalStages = allStages - skippedStages is understandable. But consider the problem [SPARK-6973], I think totalStages = allStages is more reasonable. Like "2/1 (2 failed) (1 skipped)", this item also shows the skipped num, it also will be understandable.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/XuTingjun/spark allJobsPage

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5550.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5550
    
----
commit 47525c6138597a01a6cd2408b95b0fdd4387e0c5
Author: Xu Tingjun <xu...@huawei.com>
Date:   2015-04-17T06:29:41Z

    modify total stages/tasks on the allJobsPage

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5550#discussion_r28952947
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
    @@ -283,6 +285,18 @@ class JobProgressListener(conf: SparkConf) extends SparkListener with Logging {
         val stage = stageSubmitted.stageInfo
         activeStages(stage.stageId) = stage
         pendingStages.remove(stage.stageId)
    +
    +    // If a stage retries again, it should be removed from completedStageIndices set
    +    for (
    +      activeJobsDependentOnStage <- stageIdToActiveJobIds.get(stage.stageId);
    +      jobId <- activeJobsDependentOnStage;
    +      jobData <- jobIdToData.get(jobId)
    +    ) {
    +      if (jobData.completedStageIndices.contains(stage.stageId)) {
    --- End diff --
    
    Oh I see you made this change already. I don't think you have to check `contains` to `remove` it; it won't do anything if not present. Why the loop here -- can this not happen in the same loop farther down?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5550#discussion_r28952966
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/UIData.scala ---
    @@ -63,7 +64,7 @@ private[jobs] object UIData {
         /* Stages */
         var numActiveStages: Int = 0,
         // This needs to be a set instead of a simple count to prevent double-counting of rerun stages:
    -    var completedStageIndices: OpenHashSet[Int] = new OpenHashSet[Int](),
    +    var completedStageIndices: mutable.HashSet[Int] = new mutable.HashSet[Int](),
    --- End diff --
    
    I might leave out this change as it's no longer buying anything and might make the memory size increase.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95559063
  
      [Test build #30837 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/30837/consoleFull) for   PR 5550 at commit [`a742541`](https://github.com/apache/spark/commit/a74254132c1a3d5965ac2f4877ab98773850ae0a).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95585007
  
      [Test build #30837 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/30837/consoleFull) for   PR 5550 at commit [`a742541`](https://github.com/apache/spark/commit/a74254132c1a3d5965ac2f4877ab98773850ae0a).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.
     * This patch does not change any dependencies.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
GitHub user XuTingjun reopened a pull request:

    https://github.com/apache/spark/pull/5550

    [SPARK-6973]modify total stages/tasks on the allJobsPage

    Though totalStages = allStages - skippedStages is understandable. But consider the problem [SPARK-6973], I think totalStages = allStages is more reasonable. Like "2/1 (2 failed) (1 skipped)", this item also shows the skipped num, it also will be understandable.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/XuTingjun/spark allJobsPage

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5550.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5550
    
----
commit 47525c6138597a01a6cd2408b95b0fdd4387e0c5
Author: Xu Tingjun <xu...@huawei.com>
Date:   2015-04-17T06:29:41Z

    modify total stages/tasks on the allJobsPage

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5550#discussion_r28953484
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/UIData.scala ---
    @@ -63,7 +64,7 @@ private[jobs] object UIData {
         /* Stages */
         var numActiveStages: Int = 0,
         // This needs to be a set instead of a simple count to prevent double-counting of rerun stages:
    -    var completedStageIndices: OpenHashSet[Int] = new OpenHashSet[Int](),
    +    var completedStageIndices: mutable.HashSet[Int] = new mutable.HashSet[Int](),
    --- End diff --
    
    Oh I understand. OK.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-94364746
  
    @srowen , do you mean we should count the first time of stages into total/completed stages?
    @JoshRosen , Do you have any suggestions?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95555147
  
    @srowen I have updated the code, please have a look.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95558576
  
    This is looking good although I'd still love to get more experienced eyes on this. Are you able to verify this fixed your problem?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-93954322
  
    OK, the screenshot and new description clarify it. Stage 0 completes, so is counted towards the total and completed stage IDs. It is retried because Stage 1 failed (?) and is skipped. It's still considered to have completed, but now does not count against the total since it was also skipped (the second time).
    
    The same logic works for tasks since tasks are not retried under the same ID, I think?
    
    The problem with this change as it is, is what I mentioned -- if a stage *doesn't* complete and is skipped then you have something like "2/3 (1 skipped)" which isn't great.
    
    However to fix this, should a stage's ID be removed from the set of completed stages if it is retried?
    CC @JoshRosen 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-93948969
  
    Sorry, I can't attach the screenshot of stages, so maybe I described not clearly.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by SaintBacchus <gi...@git.apache.org>.
Github user SaintBacchus commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-94621996
  
    @srowen As far as you said, a retry stage should be considered as an uncompleted stage.
    The case described in the jira will be showed as `0/1 (1 skipped)(2 failed)` for a successful job though there were some retries in it. Can it be acceptable for the spark user?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-93913097
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-94756835
  
    I think that it would then show `1/1 (1 skipped) (2 failed)` The first task would not be considered completed, but then would not count against the total as it was skipped. The only odd thing about this is that it doesn't reflect the fact that the first task completed once, but that's the limit of how much this "x/y" string can show, I guess. It makes some sense because we say "1 skipped" and "2 failed" which are things that happened in addition to the report 1/1 success. This might be the most coherent thing to do.
    
    BTW I don't think you want to change the logic for task counts since it doesn't have the same problem, I think. There's no reused task ID as there was with stage ID, I think.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95526618
  
    But I think I have done that in `onStageSubmitted`, removing a stage ID from the completed set the moment it is retried. Have you seen that?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5550#discussion_r28952873
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
    @@ -271,7 +271,9 @@ class JobProgressListener(conf: SparkConf) extends SparkListener with Logging {
         ) {
           jobData.numActiveStages -= 1
           if (stage.failureReason.isEmpty) {
    -        jobData.completedStageIndices.add(stage.stageId)
    +        if (!stage.submissionTime.isEmpty) {
    --- End diff --
    
    What is this case? A stage didn't fail but never submitted, so is it skipped?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95386082
  
    @srowen I may miss something. Actually your idea is that, we should count  the last retry status of stage into completed/total, right?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-93943134
  
    No, I disagree with this change. Skipped stages will never be completed, so this will show things like "2/3 (1 skipped)" which sounds like something is still waiting to run.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun closed the pull request at:

    https://github.com/apache/spark/pull/5550


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95133295
  
    I like that you've introduced a set for skipped stages, since there is also a problem with the same stage being skipped many times! But can `numSkippedStages` now be removed? 
    
    It still feels funny to count a stage as completed and skipped at the same time. How about just removing a stage ID from the set of completed stages in `onStageSubmitted`? if a stage is being run (again), it can no longer be called "completed", I think?
    
    Then you don't need a new `diff` method or to subtract out the skipped stages. I think the set is still probably correct for skipped stages since a stage could conceivably completed, restart, and be skipped multiple times (?)
    
    CC @JoshRosen to make sure we're not going off track here, as I think you added the skipped-stage logic here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95559213
  
    I have tested it, it has fixed my problem.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-96767038
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5550#discussion_r28953027
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
    @@ -271,7 +271,9 @@ class JobProgressListener(conf: SparkConf) extends SparkListener with Logging {
         ) {
           jobData.numActiveStages -= 1
           if (stage.failureReason.isEmpty) {
    -        jobData.completedStageIndices.add(stage.stageId)
    +        if (!stage.submissionTime.isEmpty) {
    --- End diff --
    
    Yes, like the case described in the jira.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5550#discussion_r28953413
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/UIData.scala ---
    @@ -63,7 +64,7 @@ private[jobs] object UIData {
         /* Stages */
         var numActiveStages: Int = 0,
         // This needs to be a set instead of a simple count to prevent double-counting of rerun stages:
    -    var completedStageIndices: OpenHashSet[Int] = new OpenHashSet[Int](),
    +    var completedStageIndices: mutable.HashSet[Int] = new mutable.HashSet[Int](),
    --- End diff --
    
    Did you disagree this? But the `OpenHashSet` doesn't support remove operation. Do you have any suggestion on this?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95585049
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30837/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-94410993
  
    As far as I can see, the fix is as I say -- when a stage begins a retry, it should no longer be considered a completed stage. I'm not clear if that messes up other logic, but, it sounds right. It should solve this problem.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95558522
  
    Jenkins, retest this please


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-93946709
  
    I think you're describing a different question in the JIRA, which is how to count retried stages? I think retried stages are counted separately, but not skipped stages. Is that the issue?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95524581
  
    @XuTingjun If a stage completes, but then is retried and skipped on the second execution, then it's counted as _both_ "completed" and "skipped". Yes, I think it should not be counted as "completed". Your change does that, but I'm saying it might make this more error-prone later to count the stage ID in both the "completed" and "skipped" sets. It also requires this new `diff` operation. What about removing a stage ID from the completed set the moment it is retried? then everything else works out? might be simpler.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95008837
  
    @srowen I have update the patch code, delete the skipped stage from completed set.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]remove skipped stage ID from compl...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-95767885
  
    @JoshRosen Can you have a look on this? We need your opinion.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6973]modify total stages/tasks on the a...

Posted by XuTingjun <gi...@git.apache.org>.
Github user XuTingjun commented on the pull request:

    https://github.com/apache/spark/pull/5550#issuecomment-93946383
  
    Yeah, there will be this result. But consider the bug described in the jira, I think it's more reasonable.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org