Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15567

[SBN Read] HDFS should expose msync() API to allow downstream applications call it explicitly.

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Consistent reads from Standby introduced msync() API HDFS-13688, which updates client's state ID with current state of the Active NameNode to guarantee consistency of subsequent calls to an ObserverNode. Currently this API is exposed via DFSClient only, which makes it hard for applications to access msync(). One way is to use something like this:

      if(fs instanceof DistributedFileSystem) {
        ((DistributedFileSystem)fs).getClient().msync();
      }
      

      This should be exposed both for FileSystem and FileContext.

      Attachments

        1. HDFS-15567.001.patch
          8 kB
          Konstantin Shvachko
        2. HDFS-15567.002.patch
          13 kB
          Konstantin Shvachko

        Issue Links

          Activity

            People

              shv Konstantin Shvachko
              shv Konstantin Shvachko
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: