Closed lukebakken closed 1 year ago
Perhaps @jaredmorrow @Vagabond and/or @russelldb have any opinions on this? Would this issue be addressed by:
I don't think that change would help: these errors are from processes that were started to trim the size of ets tables every N seconds that find their tables gone.
Is there a way they can monitor the existence of the table and just stop when the table is deleted?
Hrm ... just putting a 'catch' around the trim call at https://github.com/basho/folsom/blob/master/src/folsom_sample_slide_server.erl#L61 seems a bit ugly: it could mask bugs that someone might like to know about.
Another option would be to have all folsom tables owned by a single owner proc. Then the OTP application startup & shutdown ordering could take care of races like this one. The cost would be having to ask a single proc to create new ETS tables for you ... which might introduce a bottleneck that other Folsom users (or even Riak) might not appreciate?
Another option would be to use the 'heir' property of the ETS tables to pass them to a folsom OTP app proc to be the owner. I don't recall which version of Erlang/OTP introduced the 'heir' thingie, sorry.
@joewilliams Thoughts?
Yes, I think that is the right thing to do. It has been mentioned a few times on the folsom repo issue list too. So far, I haven't had time to do this work.
Seems reasonable, I'm in the same boat, haven't had time to contribute to folsom recently to take care of things like this.
Marking as milestone 2.0.1
since this seems to be an existing issue and we don't have a planned fix for 2.0-RC
.
I got notified of this issue closing, may I recommend using https://github.com/folsom-project/folsom instead. We've made a number of fixes, improvements, etc since riak last sync'd with folsom that might fix this. I no longer have access to the original folsom repo so all the work goes into the new one now.
Thanks @joewilliams. I'm just closing issues to clean up my https://github.com/issues feed.
@joewilliams - Riak is now using folsom-project/folsom 1.0.0 in the latest release, thank-you for the ongoing updates
@lukebakken - apologies that you ended up with all those dead issues in your feed, happy for them to be closed as I can't imagine anyone will get round to them. Riak is not quite dead yet though, new releases are still being cut, and there are still some very-big installations in active use. We're doing what we can to keep it alive!
From the
console.log
of a Riak node. It appears the ets table identifier is invalid due to the table not existing anymore, causing thebadarg
error.See support ticket #5992