Yelp / pyleus

Pyleus is a Python framework for developing and launching Storm topologies.
Apache License 2.0
404 stars 113 forks source link

MsgPack serializer in pyleus topology is mutating float data #75

Closed smoy closed 9 years ago

smoy commented 9 years ago

I change the exclamation example topology to emit the following dict:

{'start_time': 1413404322.1652811}

and the bolt to simply log out the value

I notice MsgPack is mutating the 1413404322.1652811 to 1413404288.0

When I change the topology.yam to use serializer 'json', expected the value comes up.

poros commented 9 years ago

This is a duplicate of https://github.com/Yelp/pyleus/pull/53 The fix to this issue is already merged in develop and is going to be included in the next release. If you really need msgpack working with float values, you may need to build from develop. Sorry about that.