Skip to content
This repository was archived by the owner on Jul 11, 2018. It is now read-only.
This repository was archived by the owner on Jul 11, 2018. It is now read-only.

写操作落在维护块上可能造成文件重名 #19

Description

@huaizong

https://github.com/alibaba/tfs/blob/master/src/nameserver/client_request_server.cpp#L120-121

write 的open 模式,只考虑block_id > 0 的情况, 新插入的写操作block_id ==0 , 但是也需要规避写在正进行维护的逻辑块

          if ((block_id > 0)
              && (!(mode & T_NOLEASE)))

若压测场景中若正在写入的块处于压缩阶段,压缩后的块的索引seq值有一定概率没有更新,(seq 更新到旧的块上,新块的seq已经拷贝完成), 这带来的问题是下一次这个块上的产生的fileid重复,造成文件名重名。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions