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

ImmutableDB: migrate XXXXX.epoch to XXXXX.chunk #1954

Merged
merged 4 commits into from
Apr 20, 2020

Conversation

mrBliss
Copy link
Contributor

@mrBliss mrBliss commented Apr 15, 2020

Fixes #1755.

On startup, the ImmutableDB will rename any XXXXX.epoch files to XXXXX.chunk before validation.

@mrBliss mrBliss added the consensus issues related to ouroboros-consensus label Apr 15, 2020
@mrBliss mrBliss requested a review from edsko April 15, 2020 13:34
@mrBliss mrBliss force-pushed the mrBliss/migrate-epoch-to-chunk branch from 05c9416 to 3f02be0 Compare April 16, 2020 08:31
@mrBliss mrBliss force-pushed the mrBliss/migrate-epoch-to-chunk branch 2 times, most recently from 3624f24 to 4a8dbf2 Compare April 16, 2020 12:20
@mrBliss
Copy link
Contributor Author

mrBliss commented Apr 16, 2020

I tested this with cardano-node and it works.

@mrBliss mrBliss force-pushed the mrBliss/migrate-epoch-to-chunk branch from 4a8dbf2 to c12d126 Compare April 16, 2020 17:21
@mrBliss
Copy link
Contributor Author

mrBliss commented Apr 17, 2020

bors merge

iohk-bors bot added a commit that referenced this pull request Apr 17, 2020
1954: ImmutableDB: migrate XXXXX.epoch to XXXXX.chunk r=mrBliss a=mrBliss

Fixes #1755.

On startup, the ImmutableDB will rename any XXXXX.epoch files to XXXXX.chunk before validation.


Co-authored-by: Thomas Winant <thomas@well-typed.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Apr 17, 2020

Timed out

@mrBliss mrBliss force-pushed the mrBliss/migrate-epoch-to-chunk branch from c12d126 to 5deac3f Compare April 17, 2020 11:17
@mrBliss
Copy link
Contributor Author

mrBliss commented Apr 17, 2020

bors merge

iohk-bors bot added a commit that referenced this pull request Apr 17, 2020
1954: ImmutableDB: migrate XXXXX.epoch to XXXXX.chunk r=mrBliss a=mrBliss

Fixes #1755.

On startup, the ImmutableDB will rename any XXXXX.epoch files to XXXXX.chunk before validation.


Co-authored-by: Thomas Winant <thomas@well-typed.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Apr 17, 2020

Build failed

Now all the definitions mentioning "epoch", "primary", and "secondary" are
close together, so that when changing one of them, the chances are higher you
update all instances of it.
In particular, passing it a string (`Text` actually) everywhere. Instead,
introduce and use `fsPathChunkFile`, `fsPathPrimaryIndexFile`, and
`fsPathSecondaryIndexFile`. Having them defined in a single place will also
make it easier to change the actual filenames in the future.
Fixes #1755.

On startup, the ImmutableDB will rename any XXXXX.epoch files to XXXXX.chunk
before validation.
@mrBliss mrBliss force-pushed the mrBliss/migrate-epoch-to-chunk branch 2 times, most recently from f93fd05 to 91113da Compare April 20, 2020 09:47
@mrBliss
Copy link
Contributor Author

mrBliss commented Apr 20, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Apr 20, 2020

@iohk-bors iohk-bors bot merged commit 4772c92 into master Apr 20, 2020
@iohk-bors iohk-bors bot deleted the mrBliss/migrate-epoch-to-chunk branch April 20, 2020 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus issues related to ouroboros-consensus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration: Rename epoch to chunk in immutable DB
2 participants