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

Commit

Permalink
Adding support for local mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Graham authored and Bill Graham committed Apr 4, 2013
1 parent 0974c60 commit 3ff9251
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 @@ -51,7 +51,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 @@ -171,6 +171,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 3ff9251

Please sign in to comment.