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

Don't attempt to send heartbeat when invalid. #596

Merged
merged 1 commit into from
May 31, 2014

Conversation

andrewjstone
Copy link
Contributor

Don't attempt to send the heartbeat message when it's misconfigured as
a value which is not an integer, which causes the process to crash,
triggering a memory leak and unbounded growth in the binary heap.

A cmeik and andrew stone joint.

cc: @jcapricebasho @kellymclaughlin

Don't attempt to send the heartbeat message when it's misconfigured as
a value which is not an integer, which causes the process to crash,
triggering a memory leak and unbounded growth in the binary heap.
@andrewjstone
Copy link
Contributor Author

Resolves #579.

@andrewjstone
Copy link
Contributor Author

We may want to add a validator in cuttlefish to ensure that this value is an integer or undefined. cc: @joedevivo

@kellymclaughlin
Copy link
Contributor

Nice job. Changes look good, just running through some testing. Is it worth also opening a PR for this change against the 1.4 branch just in case we have to do another 1.4.X release?

@kellymclaughlin
Copy link
Contributor

I verified that the binary memory holds steady when using different sized key ranges with the repl_rt_heartbeat_interval test. Also verified replication2 passes with this change.

👍

borshop added a commit that referenced this pull request May 31, 2014
Don't attempt to send heartbeat when invalid.

Reviewed-by: kellymclaughlin
@cmeiklejohn
Copy link
Contributor

@borshop merge

@borshop borshop merged commit e3df24f into develop May 31, 2014
@cmeiklejohn cmeiklejohn deleted the features/ajs/heartbeat branch May 31, 2014 17:28
@cmeiklejohn cmeiklejohn restored the features/ajs/heartbeat branch May 31, 2014 17:28
@seancribbs seancribbs deleted the features/ajs/heartbeat branch April 1, 2015 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants