You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Michael Park (JIRA)" <ji...@apache.org> on 2015/05/15 01:11:59 UTC
[jira] [Commented] (MESOS-2265) Introduce an os::rename abstraction
to stout.
[ https://issues.apache.org/jira/browse/MESOS-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14544582#comment-14544582 ]
Michael Park commented on MESOS-2265:
-------------------------------------
{noformat}
commit cd0de6bac148144c6eab0d12935052c9da1a1ff9
Refs:
Author: Michael Park <mc...@gmail.com>
AuthorDate: Tue Jan 20 11:03:15 2015 -0800
Commit: Jie Yu <yu...@gmail.com>
CommitDate: Tue Jan 20 11:03:15 2015 -0800
Added os::rename to stout.
Review: https://reviews.apache.org/r/30081
{noformat}
> Introduce an os::rename abstraction to stout.
> ---------------------------------------------
>
> Key: MESOS-2265
> URL: https://issues.apache.org/jira/browse/MESOS-2265
> Project: Mesos
> Issue Type: Improvement
> Components: stout
> Reporter: Michael Park
> Assignee: Michael Park
> Fix For: 0.22.0
>
>
> We introduce an {{os::rename}} abstraction to {{stout}} in order to support atomicity and validity of checkpointed files. Writing directly to the checkpoint file can leave the file in a corrupted state if either: the slave crashes while writing, or checkpointing encounters an error and the slave crashes before the partially written file is removed. We should checkpoint to a temporary file instead and use {{os::rename}} to atomically move it to the desired path.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)