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

BlockSender should compare on disk file length with replica length instead of replica visible length.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.21.0
    • None
    • datanode
    • None

    Description

      BlockSender waits until all bytes of a replica are flushed to disk. Currently it compares the replica bytes on disk with the replica visible length. In order to make sure that all bytes are flushed it should compare the bytes on disk with the block length, because visible length may be smaller than the block length.
      It would be useful also to create a special method FSDataset.getBytesOnDisk(blockID), which gets this information through the volume map. Otherwise we may access replicas, which are not in the map anymore.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: