dustin / seriesly

A time series database.
Other
461 stars 39 forks source link

Crash/exit due to +Inf? #26

Closed vys closed 3 years ago

vys commented 11 years ago

Another crash/exit with following message:

2012/11/25 15:50:02 Error marshaling &{stats#1353858580000000000#11925538933135556274 1353858580000000000 [+Inf] 0}: json: error calling MarshalJSON for type *main.processOut: json: unsupported value: +Inf

dustin commented 11 years ago

Can you give me an example of data that produces this? I thought I'd covered the inputs that lead to this, but I clearly am missing a test case.

vys commented 11 years ago

I restarted it and it started working. I'm just pumping in regular membase stats output jsonified. Not sure if it happens consistently with any specific data. Let me know if you still want a sample input.

dustin commented 11 years ago

I think I know how to make it not break there, but I'm not sure how to make it break there so I can't tell for sure. If you can make it happen regularly, I can send you a patch to try, otherwise, I'll keep trying to write tests.

I have a testing strategy that I think helps it out some, so I might just try a different approach.