Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for a NullPointerException when hostname is null in Task Metrics #349

Merged
merged 1 commit into from
Aug 12, 2014

Conversation

nfergu
Copy link
Contributor

@nfergu nfergu commented Aug 9, 2014

If the hostname is null in the Spark Task Metrics, this causes the following NullPointerException:

java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
at com.google.common.collect.MapMakerInternalMap.putIfAbsent(MapMakerInternalMap.java:3507)
at com.google.common.collect.Interners$WeakInterner.intern(Interners.java:85)
at com.netflix.servo.tag.Tags.intern(Tags.java:33)
at com.netflix.servo.tag.Tags.newTag(Tags.java:53)
at org.bdgenomics.adam.instrumentation.TaskTimer$$anonfun$$plus$eq$1.apply(SparkMetrics.scala:184)
at org.bdgenomics.adam.instrumentation.TaskTimer$$anonfun$$plus$eq$1.apply(SparkMetrics.scala:184)
at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:189)
at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:91)
at org.bdgenomics.adam.instrumentation.TaskTimer.$plus$eq(SparkMetrics.scala:183)
at org.bdgenomics.adam.instrumentation.ADAMMetricsListener.onTaskEnd(ADAMMetricsListener.scala:48)

It's not clear under what circumstances this happens, but I've seen it when a job was cancelled part-way through.

…park Task Metrics is null

It's not clear under what circumstances this happens, but I've seen it when a job was cancelled part-way through
fnothaft added a commit that referenced this pull request Aug 12, 2014
Fix for a NullPointerException when hostname is null in Task Metrics
@fnothaft fnothaft merged commit ba08b84 into bigdatagenomics:master Aug 12, 2014
@fnothaft
Copy link
Member

Thanks @nfergu! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants