Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-3252

FsManager initialized contention if two tserver instances try to call CreateInitialFileSystemLayout on the same folder

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I scanned the Kudu source code for DeleteDir invocation, there are 2 places: https://github.com/apache/kudu/blob/master/src/kudu/fs/fs_manager.cc#L384 and [https://github.com/apache/kudu/blob/master/src/kudu/fs/fs_manager.cc#L485].
      Imagine, I start kudu-tserver twice by mistake, finally only one kudu-tserver started, is it possible that its folder may be removed by another kudu-tserver since it failed to start.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                redriver Redriver
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: