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

Adds test for GBPTree which auto-detects format changes #8585

Merged
merged 2 commits into from
Jan 10, 2017

Conversation

tinwelint
Copy link
Member

this test works by having a committed current-format.zip in src/test/resources
and on failure reading and consistency checking that tree notifies developer that
a FORMAT_VERSION needs to be incremented as well. When developer has incremented
this version a new current-format.zip is generated and must be committed together
with the other changes which changed the format.

{
loadState( pagedFile );
close();
throw e;
Copy link
Contributor

Choose a reason for hiding this comment

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

If close() throws, for whatever reason, then that exception should be suppressed instead of shadowing the original exception.

@tinwelint tinwelint force-pushed the 3.2-gbptree-format-version-test branch from ac1e105 to fd16208 Compare January 9, 2017 14:56
this test works by having a committed current-format.zip in src/test/resources
and on failure reading and consistency checking that tree notifies developer that
a FORMAT_VERSION needs to be incremented as well. When developer has incremented
this version a new current-format.zip is generated and must be committed together
with the other changes which changed the format.
@tinwelint tinwelint force-pushed the 3.2-gbptree-format-version-test branch from fd16208 to 068a44d Compare January 9, 2017 20:25
@chrisvest chrisvest merged commit 0f5e08d into neo4j:3.2 Jan 10, 2017
@chrisvest chrisvest deleted the 3.2-gbptree-format-version-test branch January 10, 2017 15:35
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.

2 participants