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

flush() should be called for every append on block scan verification log

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      RollingLogsImpl#out is PrintWriter and it have the default buffersize of 8kB.

      So until the 8kB buffer is filled all scan verification entries will not be flushed, hence there will be chance loosing this scan information if the datanode gets restarted. And One more scan will happen for these blocks.

      8kB will have ~80 entries, so 80 blocks needs to be re-scanned again.

        Attachments

        1. HDFS-6115.patch
          0.6 kB
          Vinayakumar B

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              vinayakumarb Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: