-
Notifications
You must be signed in to change notification settings - Fork 173
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
Calling Transaction::rollback() fails with assertion #5624
Comments
➤ On 2022-06-24, Jørgen Edelbo commented: One theory could be that the call to "remap_and_update_refs" in Transaction::commit_and_continue_as_read could throw. If this happens we could get a stacktrace like the ones we have seen. I tried to create a test where I forced the function to throw and then I got this trace: #4 0x00005555564abb84 in realm::util::terminate (message=0x55555676ed50 "Assertion failed: m_write_transaction_open", This will effectively hide the underlying exception. The PR #5615 updates the transaction stage earlier so that this assertion will not fail. I don't believe that this is the root cause, but the PR will rule it out. |
➤ On 2022-06-24, Jørgen Edelbo commented: I think the main question to ask is: How can it be that the transaction is still in writing stage after the call to "commit_and_continue_as_read"? It must be in writing stage, otherwise the rollback function would not be called when the transaction object is closed when going out of scope. |
Links in GitHub: |
➤ Finn Andersen commented: We have merged #5615 so when released, these failed rollbacks should go away. |
➤ Lee Maguire commented: It looks like this issue has resurfaced after the fix was merged https://jira.mongodb.org/browse/HELP-36253 |
➤ Jørgen Edelbo commented: [~lee.maguire@mongodb.com] the fix that Finn mentioned was not released in Swift until 10.28.4 |
➤ Finn Andersen commented: Yeah, we should close this unless it is reported on a newer release. |
➤ Finn Andersen commented: Closing as presumably fixed |
This is an umbrella issue used to track the resolution of several issues we have seen including "Transaction::rollback" in the stack trace. These are (please update if more are found):
#5585
https://github.com/realm/realm-swift/issues/7788 (now closed)
The text was updated successfully, but these errors were encountered: