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

Regenerate editsStored and editsStored.xml in HDFS tests

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta1
    • Fix Version/s: 3.0.0
    • Component/s: test
    • Labels:
      None
    • Target Version/s:

      Description

      From HDFS-12840, we found that the `editsStored` in HDFS tests missing a few operations, i.e., the following operations from DFSTestUtils#runOperations().

       // OP_UPDATE_BLOCKS 25
          final String updateBlockFile = "/update_blocks";
          FSDataOutputStream fout = filesystem.create(new Path(updateBlockFile), true, 4096, (short)1, 4096L);
          fout.write(1);
          fout.hflush();
          long fileId = ((DFSOutputStream)fout.getWrappedStream()).getFileId();
          DFSClient dfsclient = DFSClientAdapter.getDFSClient(filesystem);
          LocatedBlocks blocks = dfsclient.getNamenode().getBlockLocations(updateBlockFile, 0, Integer.MAX_VALUE);
          dfsclient.getNamenode().abandonBlock(blocks.get(0).getBlock(), fileId, updateBlockFile, dfsclient.clientName);
          fout.close();
      

      We should re-generate to edits and related XML to sync with the code.

        Attachments

        1. editsStored
          7 kB
          Lei (Eddy) Xu
        2. HDFS-12847.00.patch
          48 kB
          Lei (Eddy) Xu

          Activity

            People

            • Assignee:
              eddyxu Lei (Eddy) Xu
              Reporter:
              eddyxu Lei (Eddy) Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: