Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6735 A minor optimization to avoid pread() be blocked by read() inside the same DFSInputStream
  3. HDFS-6803

Documenting DFSClient#DFSInputStream expectations reading and preading in concurrent context

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.1
    • 2.7.0
    • hdfs-client
    • None

    Description

      Reviews of the patch posted the parent task suggest that we be more explicit about how DFSIS is expected to behave when being read by contending threads. It is also suggested that presumptions made internally be made explicit documenting expectations.

      Before we put up a patch we've made a document of assertions we'd like to make into tenets of DFSInputSteam. If agreement, we'll attach to this issue a patch that weaves the assumptions into DFSIS as javadoc and class comments.

      Attachments

        1. HDFS-6803v3.txt
          5 kB
          Michael Stack
        2. HDFS-6803v2.txt
          4 kB
          Michael Stack
        3. fsdatainputstream.md.v3.html
          45 kB
          Michael Stack
        4. DocumentingDFSClientDFSInputStream (1).pdf
          113 kB
          Michael Stack
        5. DocumentingDFSClientDFSInputStream.v2.pdf
          131 kB
          Michael Stack
        6. 9117.md.txt
          2 kB
          Michael Stack

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: