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

CheckTxLogs Uses existing mechanisms to extract transactions from multiple logs #7611

Merged
merged 1 commit into from Jul 25, 2016

Conversation

tinwelint
Copy link
Member

instead of checking each individual log file. Reason being that order is vital
to correct results and less and simpler code in CheckTxLogs as well.

@tinwelint
Copy link
Member Author

NOTE: The compilation error in recovery-robustness is fine and expected, there will be an accompanied commit to recovery-robustness when this goes in

* @param logVersionCallback will be kept up to date with which log version the cursor is at.
*/
public static LogEntryCursor openLogs( final FileSystemAbstraction fs, File storeDirectory,
final AtomicLong logVersionCallback )
Copy link
Contributor

@lutovich lutovich Jul 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This current log version callback does not look pretty. Can this method instead return a thing that extends LogEntryCursor with a method like getCurrentLogVersion()? Or this method can be added to LogEntryCursor itself.

Copy link
Member Author

@tinwelint tinwelint Jul 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, it doesn't. However it's simply a test utility. Your suggestion sounds good though, lemme try that.

EDIT: there's actually no precise way of determining the log version of a given entry. Hooking in on the version bridge is currently the best way to do this. Perhaps just provide a nicer callback thing instead of AtomicLong?

ANOTHER EDIT: I'm wrong, the cursor already have the channel and all that, should be simple to add.

@lutovich
Copy link
Contributor

@tinwelint review round completed. I think we should change the mutable long callback thing.

…tiple logs

instead of checking each individual log file. Reason being that order is vital
to correct results and less and simpler code in CheckTxLogs as well.
@tinwelint
Copy link
Member Author

@lutovich changed things all for the better imho, have another look

@lutovich lutovich merged commit beb1996 into neo4j:2.3 Jul 25, 2016
@lutovich lutovich deleted the 2.3-simpler-check-tx-logs branch July 25, 2016 09: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

2 participants