Skip to content

Reset if we don't get a view header#2558

Merged
rnewson merged 2 commits intomasterfrom
reset-corrupt-view-index-2
Feb 17, 2020
Merged

Reset if we don't get a view header#2558
rnewson merged 2 commits intomasterfrom
reset-corrupt-view-index-2

Conversation

@rnewson
Copy link
Copy Markdown
Member

@rnewson rnewson commented Feb 16, 2020

Overview

I found a .view file with a db_header in production (cause unknown but
I'm hoping it's manual intervention).

This patch means we'll reset the index if we find something other than
a view header when looking for one.

Testing recommendations

Not entirely sure tbh, renaming and moving a .couch file to a .view maybe?

Related Issues or Pull Requests

#2438

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

I found a .view file with a db_header in production (cause unknown but
I'm hoping it's manual intervention).

This patch means we'll reset the index if we find something other than
a view header when looking for one.
Copy link
Copy Markdown
Contributor

@jiangphcn jiangphcn left a comment

Choose a reason for hiding this comment

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

+1

@rnewson rnewson merged commit 09ac720 into master Feb 17, 2020
@rnewson rnewson deleted the reset-corrupt-view-index-2 branch February 17, 2020 10:44
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.

2 participants