Skip to content
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

Fixed issue with last committed tx id in query planning #5935

Merged
merged 2 commits into from Nov 24, 2015

Conversation

maxsumrall
Copy link

This issue could result in slaves never re-planing queries after a mode switch or even directly after the startup. It occurred because function that resolved last committed transaction id held a reference to a stale TransactionIdStore. TransactionIdStore is re-initialized after the NeoStoreDataSource restart which happens after mode switch in HA.

Introduced LastCommittedTxIdProvider that is able to take last committed transaction id from the given GraphDatabaseService.

NeoStore benefits from such check because it is often used as the source of
different transaction related counters. So with the assertion in place NeoStore
is no longer able to expose those counters after being closed.
@davidegrohmann
Copy link
Contributor

@maxsumrall looks fine, small details to be fixed

This issue could result in slaves never re-planing queries after a mode switch
or even directly after the startup. It occurred because function that resolved
last committed transaction id held a reference to a stale TransactionIdStore.
TransactionIdStore is re-initialized after the NeoStoreDataSource restart which
happens after mode switch in HA.

Introduced LastCommittedTxIdProvider that is able to take last committed
transaction id from the given GraphDatabaseService.
davidegrohmann added a commit that referenced this pull request Nov 24, 2015
Fixed issue with last committed tx id in query planning
@davidegrohmann davidegrohmann merged commit 2565b40 into neo4j:2.2 Nov 24, 2015
@maxsumrall maxsumrall deleted the 2.2-slave-replanning branch August 25, 2016 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants