Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Select after delete and insert in transaction #264

Open
arthurhsu opened this issue Aug 3, 2020 · 2 comments
Open

Select after delete and insert in transaction #264

arthurhsu opened this issue Aug 3, 2020 · 2 comments
Assignees

Comments

@arthurhsu
Copy link
Contributor

Customer reported issue: https://groups.google.com/d/msgid/lovefield-users/8b96adb3-74a0-4ed9-9b98-c39128003390o%40googlegroups.com.

Minimum repro: http://plnkr.co/edit/ifNSA8OtXnsgDPFc?preview

@arthurhsu
Copy link
Contributor Author

Sample code has misuse of db.close() but I don't know if that's the real cause. freshp86@ do you have cycles to take a look?

@arthurhsu
Copy link
Contributor Author

This only happens if the second button is clicked immediately after the first one, suspecting a race condition for db.close() and db.init(). If I wait long enough (2 seconds on my Mac Pro), then the second select is working correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants