-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Avoid to call queue.process a second time when indexing #21
base: master
Are you sure you want to change the base?
Conversation
How does this relate to the already merged code in Products.CMFCore? |
It is indeed related to zopefoundation/Products.CMFCore#79. |
We have the very same issue (with duplicate rids). Does the fix works fine for you? Or do you happen to integrate the fix of jensen? |
The Fix works fine in Plone 4. Not yet tested in higher version. |
I am not working any more on collective.indexing. Feel free to merge this if it solves the problem. If a release is needed best ping Maurits or Timo. |
I'll report back, after having run this branch against our test suites (with several hundreds robot tests) and doing manual tests. |
I'm pleased to report, that the changes of this PR did not fail any of our tests (more than 400 of them). 👍 Still, a dedicated test here would be useful, maybe one that fails and later succeeds with the changes. |
@pgrunewald do you volunteer to add such a test? Otherwise I would go for a merge. |
Ok, important update: Unfortunately there is an error, when creating two objects at the very same time:
The first object was successfully added, but it crashes for the the second one. Our own tests run through, because there are never two threads updating the catalog at the same time. This PR therefor needs more inspection and is not sufficient yet. On the side note: Our own analysis makes me believe that it is more a problem with the objects being indexed rather than the catalog itself. |
Solution for issue #20.
Need ideally a specific test to verify duplication absence.