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
GH-2211 Fix DynamicModel upgrade flaky test failure #2227
Conversation
Stacktrace for the thrown exception (when the test does succeed) is this:
This is on trying to add a new statement to the private |
Grmbl, of course the build succeeds this time around :/ I'm going to push the volatile fix anyway, and then merge into my other issue branch to see if it solves the build failures in both cases. |
Both builds now succeed. This may just be luck of course, but I'm cautiously optimistic. |
Build never failed for me on GitHub CI. |
Master branch is currently unstable. See https://github.com/eclipse/rdf4j/actions?query=workflow%3A%22master+status%22 . I know it only started failing after merging your Changeset improvements, but the test that fails has to do with the DynamicModel upgrade, so I am assuming it's intermittent and the first build just got lucky. It also caused my PR build for a completely unrelated bug fix to fail by the way, so it's not just the one build, there's definitely something flaky. |
Unless you have objections I will merge this, and hope that it fixes the problem. |
I don't want to use volatile there, for performance, and I think I've found something wrong with the latches in the test. |
GitHub issue resolved: #2211
This is a draft branch to address test failure in
org.eclipse.rdf4j.model.DynamicModelConcurrentModificationAndUpgradeTest
on Github CI. The test succeeds when ran on my local machine so it's flaky (which is not unusual with multithreaded stuff).I am not immediately spotting a problem with either the test or the implementation, so opening this draft PR to see the problem (hoping the CI build at least consistently fails) and cooperate on a fix.
PR Author Checklist:
Note: we merge all feature pull requests using squash and merge. See RDF4J git merge strategy for more details.