Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented May 9, 2016

What changes were proposed in this pull request?

To extract job descriptions and stage name, there are following regular expressions in timeline-view.js

var jobIdText = $($(baseElem).find(".application-timeline-content")[0]).text();
var jobId = jobIdText.match("\\(Job (\\d+)\\)")[1];
...
var stageIdText = $($(baseElem).find(".job-timeline-content")[0]).text();
var stageIdAndAttempt = stageIdText.match("\\(Stage (\\d+\\.\\d+)\\)")[1].split(".");

But if job descriptions include patterns like "(Job x)" or stage names include patterns like "(Stage x.y)", the regular expressions cannot be match as we expected, ending up with corresponding row cannot be highlighted even though we move the cursor onto the job on Web UI's timeline.

How was this patch tested?

Manually tested with spark-shell and Web UI.

@SparkQA
Copy link

SparkQA commented May 10, 2016

Test build #58182 has finished for PR 13016 at commit 1545bb2.

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

@rxin
Copy link
Contributor

rxin commented May 11, 2016

Thanks - merging in master/2.0.

asfgit pushed a commit that referenced this pull request May 11, 2016
…ugh cursor is on the job on Web UI's timeline

## What changes were proposed in this pull request?

To extract job descriptions and stage name, there are following regular expressions in timeline-view.js

```
var jobIdText = $($(baseElem).find(".application-timeline-content")[0]).text();
var jobId = jobIdText.match("\\(Job (\\d+)\\)")[1];
...
var stageIdText = $($(baseElem).find(".job-timeline-content")[0]).text();
var stageIdAndAttempt = stageIdText.match("\\(Stage (\\d+\\.\\d+)\\)")[1].split(".");
```

But if job descriptions include patterns like "(Job x)" or stage names include patterns like "(Stage x.y)", the regular expressions cannot be match as we expected, ending up with corresponding row cannot be highlighted even though we move the cursor onto the job on Web UI's timeline.

## How was this patch tested?

Manually tested with spark-shell and Web UI.

Author: Kousuke Saruta <[email protected]>

Closes #13016 from sarutak/SPARK-15235.

(cherry picked from commit ba181c0)
Signed-off-by: Reynold Xin <[email protected]>
@asfgit asfgit closed this in ba181c0 May 11, 2016
zzcclp added a commit to zzcclp/spark that referenced this pull request May 12, 2016
@sarutak sarutak deleted the SPARK-15235 branch June 4, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants