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

add WAL recovery #3717

Merged
merged 1 commit into from
Aug 18, 2015
Merged

add WAL recovery #3717

merged 1 commit into from
Aug 18, 2015

Conversation

benbjohnson
Copy link
Contributor

Overview

This commit adds recovery for the engine/wal. It handles removal of segment files that have been written to the WAL but failed before removal. It also renames the compaction file before initializing the partition.

/cc @pauldix

@@ -74,6 +74,9 @@ const (
// MetaFileExtension is the file extension for the log files of new fields and measurements that get created
MetaFileExtension = "meta"

// CompactionExtension is the file extension we expect for compaction files
CompactionExtension = "CPT"
Copy link
Contributor

Choose a reason for hiding this comment

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

Capitals looks funny for file extensions. :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep :)

Copy link
Contributor

Choose a reason for hiding this comment

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

So should we change it @pauldix? It is an NYC thing? :-)

Copy link
Member

Choose a reason for hiding this comment

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

I don't really have a preference. I used meta for the metadata extension and some people would argue that having something other than a 3 letter extension is blasphemy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really care. It's a temporary file anyway so it only exists momentarily. I say just leave it.

pauldix added a commit that referenced this pull request Aug 18, 2015
@pauldix pauldix merged commit e7f7be4 into influxdata:pd-wal Aug 18, 2015
@benbjohnson benbjohnson deleted the pd-wal branch October 14, 2015 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants