memcached - upgrading dalli gem from 2.6 to 2.7 in rails 4.1 app results in chaos -
after dalli gem upgrade 2.6
2.7
rails app behaves randomly.
suddenly simple rails.cache call responds unexpected results:
rails.cache.fetch(["some_key"]) "some-value" end
returns weired numbers like
278555296521270172266902296762213453293646297965197290197302295687284717213467197722257239
or array
[:created_at, "2017-07-11t17:46:58+02:00"][:updated_at, "2017-07-18t01:14:37+02:00"][:id, 1]
belonging different dataset.
i can guess it's kind of race conditions going on.
the changelog dalli refers breaking change between versions:
https://github.com/petergoldstein/dalli/blob/master/history.md#270
- breaking change: dalli::client#add , #replace return truthy value, not boolean true or false.
but seems not related issue.
i tested new gem version on staging server, , worked fine. production servers high load , lot of users did throw above errors.
thanks help!
Comments
Post a Comment