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

Go back using active flag in metadata index header instead of using a… #2267

Merged
merged 1 commit into from
May 19, 2020

Conversation

pnorbert
Copy link
Contributor

… separate 'active' file, which introduced race conditions. A separate file cannot guarantee the order of the following events: removal of active file (file system's metadata server operation), and arrival of content of metadata index file on disk (a storage operation). Index content may be en route to disk but held up to indefinite time while the active file disappears, so a reader may not get the last steps believing the file is not active anymore. In contrast, active flag is written to the same file after the last steps are written, so order is guaranteed as long as the file system guarantees the order of writes to the same file.

@chuckatkins
Copy link
Contributor

Should this be targeting the release branch?

@pnorbert
Copy link
Contributor Author

@chuckatkins This docs test is new, isn't it? What can I do here to pass?

@pnorbert
Copy link
Contributor Author

Okay, I rebased current master to get the latest docs environment.

@chuckatkins This fix should go to release. Should I make another PR to the release branch?

@chuckatkins chuckatkins changed the base branch from master to release_26 May 18, 2020 15:47
@chuckatkins chuckatkins added this to the 2.6.0 Production Release milestone May 18, 2020
… separate 'active' file, which introduced race conditions. A separate file cannot guarantee the order of the following events: removal of active file (file system's metadata server operation), and arrival of content of metadata index file on disk (a storage operation). Index content may be en route to disk but held up to indefinite time while the active file disappears, so a reader may not get the last steps believing the file is not active anymore. In contrast, active flag is written to the same file after the last steps are written, so order is guaranteed as long as the file system guarantees the order of writes to the same file.
@chuckatkins
Copy link
Contributor

@chuckatkins This docs test is new, isn't it? What can I do here to pass?
Okay, I rebased current master to get the latest docs environment.

Yes the docs test is new, It's a hidden feature in ReadTheDocs that I had their admins enable for our project. They are now passing on master and release.

@chuckatkins This fix should go to release. Should I make another PR to the release branch?

No need. You can "edit" the pr to change the target branch, which I just did.

@chuckatkins chuckatkins merged commit d089092 into ornladios:release_26 May 19, 2020
chuckatkins pushed a commit that referenced this pull request May 19, 2020
Go back using active flag in metadata index header instead of using a…
@pnorbert pnorbert deleted the active-flag-back branch May 19, 2020 10:13
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