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

When cat command is issued on snapshot files getting unexpected result

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: hdfs-client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      first if we create one file with some file length and take the snapshot of that file,and again append some data through append method to that file,then if we do cat command operation on snapshot of that file,in general it should dispaly the data what we added with create operation,but it is displaying the total data i.e. create +_ appended data.
      but if we do the same operation and if we read the contents of snapshot file through input stream it is just displaying the data created in snapshoted files.
      in this the behaviour of cat command and reading through inputstream is getting different

        Attachments

        1. HDFS-5343-0003.patch
          4 kB
          sathish
        2. HDFS-5343-0004.patch
          4 kB
          sathish
        3. HDFS-5343-0005.patch
          4 kB
          sathish
        4. HDFS-5343-0006.patch
          4 kB
          sathish
        5. HDFS-5343-002.patch
          4 kB
          sathish

          Issue Links

            Activity

              People

              • Assignee:
                sathish.gurram sathish
                Reporter:
                sathish.gurram sathish
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: