Skip to content
Browse files

Merge branch 'model_refactor' of github.com:twitter/ambrose into hack…

…week
  • Loading branch information...
2 parents a459d2a + 3ff9251 commit ab86422ba8ad737f7e4c382b4bb378128daf93d3 @sagemintblue sagemintblue committed
View
2 common/src/main/java/com/twitter/ambrose/model/Event.java
@@ -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;
View
5 pig/src/main/java/com/twitter/ambrose/pig/AmbrosePigProgressNotificationListener.java
@@ -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());

0 comments on commit ab86422

Please sign in to comment.
Something went wrong with that request. Please try again.