Build #2,203

Cask Data Application Platform - Develop Build and Test

Build: #2203 failed Manual run by Rohit Sinha

Build result summary

Details

Completed
Duration
57 minutes
Labels
None
Agent
bamboo-agent09
Revision
581c2f6dca78f4c2c7477524bafc1adc4692c492 581c2f6dca78f4c2c7477524bafc1adc4692c492
Total tests
1635
Fixed in
#2204 (Manual run by Rohit Sinha)

Responsible

No one has taken responsibility for this failure

Code commits

Author Commit Message Commit date
albertshau <ashau@google.com> albertshau <ashau@google.com> 581c2f6dca78f4c2c7477524bafc1adc4692c492 581c2f6dca78f4c2c7477524bafc1adc4692c492 Merge pull request #10174 from caskdata/feature/CDAP-13296-fix-program-status-race
CDAP-13296 fix race in program status call
Albert Shau <ashau@desktobert.svl.corp.google.com> Albert Shau <ashau@desktobert.svl.corp.google.com> 62d442fb3f16d527b3c9087a3f429b3529397645 m 62d442fb3f16d527b3c9087a3f429b3529397645 CDAP-13296 fix race in program status call
The call to get a program status was suspectible to races because
run records for the program were not read in a single transaction.
If run state happened to change in between run record reads, the
state could incorrectly be returned as stopped.

This race condition would cascade and cause other tests to fail
that would wait for a program run to complete. If one of those
tests ran into this scenario, the test would move on assuming
the program had stopped when it in fact was still running.

Fixed to read run records in a single transaction, and added
missing unit tests.

Also fixing a bug where a suspended program would have a stopped
status instead of a running status.

Tests

New test failures 1
Status Test View job Duration
Collapse Failed RemotePluginFinderTest co.cask.cdap.internal.app.runtime.artifact.RemotePluginFinderTest History
Unit Test Job < 1 sec
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: co.cask.cdap.api.dataset.DatasetManagementException: Error making request to dataset.service service at http://localhost:44363/v3/namespaces/system/data/datasets/system.metadata while doing GET with headers .
	at com.google.common.util.concurrent.Futures.wrapAndThrowUnchecked(Futures.java:1015)
	at com.google.common.util.concurrent.Futures.getUnchecked(Futures.java:1001)
	at com.google.common.util.concurrent.AbstractService.startAndWait(AbstractService.java:220)
	at com.google.common.util.concurrent.AbstractIdleService.startAndWait(AbstractIdleService.java:106)
	at co.cask.cdap.internal.app.services.http.AppFabricTestBase.initializeAndStartServices(AppFabricTestBase.java:246)
	at co.cask.cdap.internal.app.services.http.AppFabricTestBase.beforeClass(AppFabricTestBase.java:206)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(72 more lines...)

JIRA issues

IssueDescriptionStatus
Unknown Issue TypeCDAP-13296Could not obtain issue details from JIRA