Skip to content

SAMZA-2525:Fix race condition in ClientHelper#isActiveApplication#1361

Merged
cameronlee314 merged 1 commit into
apache:masterfrom
kw2542:SAMZA-2525
May 15, 2020
Merged

SAMZA-2525:Fix race condition in ClientHelper#isActiveApplication#1361
cameronlee314 merged 1 commit into
apache:masterfrom
kw2542:SAMZA-2525

Conversation

@kw2542

@kw2542 kw2542 commented May 15, 2020

Copy link
Copy Markdown
Contributor

Symptom:Incorrect job status reported, which is previous deployed job status instead of current job.
Cause:ClientHelper#isActiveApplication is invoking toAppStatus twice when comparing status to Running or New. It could happen that 1st time, the status is New which failed Running check, and 2nd invocation returns Running, which failed New check, this will result in the current app to be classified as non active causing ClientHelper to return job status of a previous deployed app.
Changes: Update ClientHelper#isActiveApplication to invoke toAppStatus once and compare both status against this single result.
Tests: None
API Changes: None
Upgrade Instructions: None
Usage Instructions: None

Symptom:Incorrect job status reported, which is previous deployed job status instead of current job.
Cause:ClientHelper#isActiveApplication is invoking toAppStatus twice when comparing status to Running or New. It could happen that 1st time, the status is New which failed Running check, and 2nd invocation returns Running, which failed New check, this will result in the current app to be classified as non active causing ClientHelper to return job status of a previous deployed app.
Changes: Update ClientHelper#isActiveApplication to invoke toAppStatus once and compare both status against this single result.
Tests: None
API Changes: None
Upgrade Instructions: None
Usage Instructions: None
@cameronlee314
cameronlee314 merged commit 5e73b1f into apache:master May 15, 2020
@kw2542
kw2542 deleted the SAMZA-2525 branch May 18, 2020 17:14
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