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

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • None
    • 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

              Unassigned Unassigned
              redriver Redriver
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: