Yeah I assume flush would fix this, but cause the index file to be larger than it could be. I handle this by only having the open in one place and reading and writing all comes from that one actor, with messaging to other actors if they want to write, or read data. I understand the concurrent references idea and that is an appealing feature, but race conditions like this can happen and sometimes that doesn't matter, but it sounds like in this case it does.