douban / pymesos

A pure python implementation of Mesos scheduler and executor
BSD 3-Clause "New" or "Revised" License
163 stars 88 forks source link

Using 'offer_id' instead of 'inverse_offer_id' in RescindInverseOffer #102

Closed shimilrahman closed 6 years ago

shimilrahman commented 6 years ago

This issue is causing the Process thread to abort on recieving 'rescind_inverse_offer' event. See the defintion from mesos.proto https://github.com/apache/mesos/blob/master/include/mesos/v1/scheduler/scheduler.proto#L110.

Traceback.

2018-07-06 10:03:31,005 [ERROR] pymesos.process: Failed to process event Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pymesos/process.py", line 194, in read self._callback.process_event(event) File "/usr/local/lib/python2.7/site-packages/pymesos/process.py", line 274, in process_event self.on_event(event) File "/usr/local/lib/python2.7/site-packages/pymesos/scheduler.py", line 635, in on_event func(event) File "/usr/local/lib/python2.7/site-packages/pymesos/scheduler.py", line 577, in on_rescind_inverse_offer offer_id = event['offer_id'] KeyError: 'offer_id'