Anda di halaman 1dari 2

diff --git

a/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.j
ava
b/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.j
ava
index 650e7f8c..ced18bb7 100644
---
a/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.j
ava
+++
b/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.j
ava
@@ -201,7 +201,7 @@ public class CoordActionInputCheckXCommand extends
CoordinatorXCommand<Void> {
updateCoordAction(coordAction, isChangeInDependency);
}
else {
- if (!nonExistListStr.isEmpty() && isPushDependenciesMet) {
+ if (isPushDependenciesMet) {
queue(new CoordActionTimeOutXCommand(coordAction,
coordJob.getUser(), coordJob.getAppName()));
}
else {
diff --git
a/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXComma
nd.java
b/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXComma
nd.java
index bbe9ea7a..787a8612 100644
---
a/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXComma
nd.java
+++
b/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXComma
nd.java
@@ -755,6 +755,23 @@ public class TestCoordActionInputCheckXCommand extends
XDataTestCase {
}

@Test
+ public void testTimeoutWithUnResolved() throws Exception {
+ String jobId = "0000000-" + new Date().getTime() + "-
TestCoordActionInputCheckXCommand-C";
+ Date startTime = DateUtils.parseDateOozieTZ("2009-02-15T23:59" + TZ);
+ Date endTime = DateUtils.parseDateOozieTZ("2009-02-16T23:59" + TZ);
+ CoordinatorJobBean job = addRecordToCoordJobTable(jobId, startTime,
endTime, "latest");
+ new CoordMaterializeTransitionXCommand(job.getId(), 3600).call();
+ CoordinatorActionBean action = CoordActionQueryExecutor.getInstance()
+ .get(CoordActionQuery.GET_COORD_ACTION, job.getId() + "@1");
+ assertEquals(CoordCommandUtils.RESOLVED_UNRESOLVED_SEPARATOR + "$
{coord:latestRange(-3,0)}",
+ action.getMissingDependencies());
+ long timeOutCreationTime = System.currentTimeMillis() - (13 * 60 * 1000);
+ setCoordActionCreationTime(action.getId(), timeOutCreationTime);
+ new CoordActionInputCheckXCommand(action.getId(),
action.getJobId()).call();
+ checkCoordActionStatus(action.getId(),
CoordinatorAction.Status.TIMEDOUT);
+ }
+
+ @Test
public void testTimeoutWithException() throws Exception {
String missingDeps = "nofs:///dirx/filex";
String actionId = addInitRecords(missingDeps, null, TZ);

Anda mungkin juga menyukai