Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Commit

Permalink
Merge branch 'model_refactor' of github.com:twitter/ambrose into hack…
Browse files Browse the repository at this point in the history
…week
  • Loading branch information
sagemintblue committed Apr 4, 2013
2 parents a459d2a + 3ff9251 commit ab86422
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/main/java/com/twitter/ambrose/model/Event.java
Expand Up @@ -52,7 +52,7 @@ private Event(Type type, T payload) {
this.payload = payload;
}

private Event(int eventId, long timestamp, Type type, T payload) {
public Event(int eventId, long timestamp, Type type, T payload) {
this.id = eventId;
this.timestamp = timestamp;
this.type = type;
Expand Down
Expand Up @@ -175,6 +175,11 @@ public void jobStartedNotification(String scriptId, String assignedJobId) {
*/
@Override
public void jobFailedNotification(String scriptId, JobStats stats) {
if (stats.getJobId() == null) {
log.warn("jobId for failed job not found. This should only happen in local mode");
return;
}

DAGNode<PigJob> node = dagNodeJobIdMap.get(stats.getJobId());
if (node == null) {
log.warn("Unrecognized jobId reported for failed job: " + stats.getJobId());
Expand Down

0 comments on commit ab86422

Please sign in to comment.