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

Avoid creating LayoutFlags redundant objects

    XMLWordPrintableJSON

    Details

      Description

      We use LayoutFlags to represent features that EditLog/FSImage can support. The utility helps write int (0) to given OutputStream and if EditLog/FSImage supports Layout flags, they read the value from InputStream to confirm whether there are unsupported feature flags (non zero int). However, we also create and return new object of LayoutFlags, which is not used anywhere because it's just a utility to read/write to/from given stream. We should remove such redundant objects from getting created while reading from InputStream using LayoutFlags#read utility.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vjasani Viraj Jasani
                Reporter:
                vjasani Viraj Jasani
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m