Closed quintesse closed 10 years ago
Yes, and it doesn't even fix the problem :(
@quintesse let me know if you need any help. ;-)
Ok, right now I'm not even sure what the simplest way is to trigger this problem. I can only do it when rebuilding the entire distribution. But when I just delete the .idx
files it doesn't happen. So it might be something else entirely.
We could add Byteman to help us reproduce this -- if it's a concurrency issue.
On Sep 22, 2014, at 0:23, Tako Schotanus notifications@github.com wrote:
Ok, right now I'm not even sure what the simplest way is to trigger this problem. I can only do it when rebuilding the entire distribution. But when I just delete the .idx files it doesn't happen. So it might be something else entirely.
— Reply to this email directly or view it on GitHub.
I have no idea what Byteman is :) But I'm still trying to see if it's really a concurrency issue.
Ok, I obviously shouldn't try to do smart concurrency stuff :( I finally fixed by just making the method synchronized which is obviously not the most efficient way. Btw, the indexer doesn't let you specify the output file which means that multiple concurrent JVMs could still mess each other up (I'd first generate it to a temp file and then rename it at the very end)
This can be more optimised. ;)