airbnb/chronos — pull request #249 by cloudysunny14 (2014-08-31 02:20:32+00:00)
Title: Mesos 0.20 docker integration throws UninitializedMessageException

Hi.

I am trying to run Mesos 0.20 docker integration, but I've got following error:

Exception in thread "Thread-14" com.google.protobuf.UninitializedMessageException: Message missing required fields: type
at com.google.protobuf.AbstractMessage$Builder.newUninitializedMessageException(AbstractMessage.java:770)
at org.apache.mesos.Protos$ContainerInfo$Builder.build(Protos.java:51784)
at com.airbnb.scheduler.mesos.MesosTaskBuilder.createContainerInfo(MesosTaskBuilder.scala:142)
at com.airbnb.scheduler.mesos.MesosTaskBuilder.getMesosTaskInfoBuilder(MesosTaskBuilder.scala:113)
at com.airbnb.scheduler.mesos.MesosJobFramework.buildTask(MesosJobFramework.scala:191)
at com.airbnb.scheduler.mesos.MesosJobFramework$$anonfun$2.apply(MesosJobFramework.scala:84)
at com.airbnb.scheduler.mesos.MesosJobFramework$$anonfun$2.apply(MesosJobFramework.scala:84)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$class.find(Iterator.scala:779)
at scala.collection.AbstractIterator.find(Iterator.scala:1157)
at com.airbnb.scheduler.mesos.MesosJobFramework.getNextTask$1(MesosJobFramework.scala:84)
at com.airbnb.scheduler.mesos.MesosJobFramework.resourceOffers(MesosJobFramework.scala:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
at com.sun.proxy.$Proxy32.resourceOffers(Unknown Source)
I0831 10:17:48.651885 28182 sched.cpp:772] Aborting framework '20140817-165256-4015564992-5050-3654-0000'

ContainerInfo is required to set the Type field.
I've patch for set DOCKER to the type field, Isn't there a good method for that?

Best regards.

Kiyonari Harigae