Skip to content

Conversation

@zhli1142015
Copy link
Contributor

@zhli1142015 zhli1142015 commented Jun 19, 2020

What changes were proposed in this pull request?

Fix app id link for multi attempts application in history summary page
If attempt id is available (yarn), app id link url will contain correct attempt id, like /history/application_1561589317410_0002/1/jobs/.
If attempt id is not available (standalone), app id link url will not contain fake attempt id, like /history/app-20190404053606-0000/jobs/.

Why are the changes needed?

This PR is for fixing 32028. App id link use application attempt count as attempt id. this would cause link url wrong for below cases:

  1. there are multi attempts, all links point to last attempt
    multi_same

  2. if there is one attempt, but attempt id is not 1 (before attempt maybe crash or fail to gerenerate event file). link url points to worng attempt (1) here.
    wrong_attemptJPG

Does this PR introduce any user-facing change?

No

How was this patch tested?

Tested this manually.

@zhli1142015
Copy link
Contributor Author

@dongjoon-hyun , @vanzin, @jerryshao , could you please help review this?

@gengliangwang
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Jun 19, 2020

Test build #124265 has finished for PR 28867 at commit ee5193e.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

Retest this please.

@SparkQA
Copy link

SparkQA commented Jun 20, 2020

Test build #124303 has finished for PR 28867 at commit ee5193e.

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

@zhli1142015
Copy link
Contributor Author

@srowen , thank you for your reviewing.

@srowen srowen closed this in eedc6cc Jun 24, 2020
srowen pushed a commit that referenced this pull request Jun 24, 2020
…y summary page

### What changes were proposed in this pull request?

Fix app id link for multi attempts application in history summary page
If attempt id is available (yarn), app id link url will contain correct attempt id, like `/history/application_1561589317410_0002/1/jobs/`.
If attempt id is not available (standalone), app id link url will not contain fake attempt id, like `/history/app-20190404053606-0000/jobs/`.

### Why are the changes needed?

This PR is for fixing [32028](https://issues.apache.org/jira/browse/SPARK-32028). App id link use application attempt count as attempt id. this would cause link url wrong for below cases:
1. there are multi attempts, all links point to last attempt
![multi_same](https://user-images.githubusercontent.com/10524738/85098505-c45c5500-b1af-11ea-8912-fa5fd72ce064.JPG)

2. if there is one attempt, but attempt id is not 1 (before attempt maybe crash or fail to gerenerate event file). link url points to worng attempt (1) here.
![wrong_attemptJPG](https://user-images.githubusercontent.com/10524738/85098513-c9b99f80-b1af-11ea-8cbc-fd7f745c1080.JPG)

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Tested this manually.

Closes #28867 from zhli1142015/fix-appid-link-in-history-page.

Authored-by: Zhen Li <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit eedc6cc)
Signed-off-by: Sean Owen <[email protected]>
@srowen
Copy link
Member

srowen commented Jun 24, 2020

Merged to master/3.0

@dongjoon-hyun
Copy link
Member

Hi, All.
Do we need this in branch-2.4? This seems to have 2.4.4 in Affects Version/s:.

@srowen
Copy link
Member

srowen commented Jun 29, 2020

Yes could go back into 2.4.x. I'll try to cherry-pick.

@dongjoon-hyun
Copy link
Member

Thank you, @srowen !

srowen pushed a commit to srowen/spark that referenced this pull request Jun 29, 2020
…y summary page

Fix app id link for multi attempts application in history summary page
If attempt id is available (yarn), app id link url will contain correct attempt id, like `/history/application_1561589317410_0002/1/jobs/`.
If attempt id is not available (standalone), app id link url will not contain fake attempt id, like `/history/app-20190404053606-0000/jobs/`.

This PR is for fixing [32028](https://issues.apache.org/jira/browse/SPARK-32028). App id link use application attempt count as attempt id. this would cause link url wrong for below cases:
1. there are multi attempts, all links point to last attempt
![multi_same](https://user-images.githubusercontent.com/10524738/85098505-c45c5500-b1af-11ea-8912-fa5fd72ce064.JPG)

2. if there is one attempt, but attempt id is not 1 (before attempt maybe crash or fail to gerenerate event file). link url points to worng attempt (1) here.
![wrong_attemptJPG](https://user-images.githubusercontent.com/10524738/85098513-c9b99f80-b1af-11ea-8cbc-fd7f745c1080.JPG)

No

Tested this manually.

Closes apache#28867 from zhli1142015/fix-appid-link-in-history-page.

Authored-by: Zhen Li <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
dongjoon-hyun pushed a commit that referenced this pull request Jul 1, 2020
…istory summary page

This is simply a backport of #28867 to branch-2.4

Closes #28949 from srowen/SPARK-32028.2.

Authored-by: Zhen Li <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants