Class LayoutVersion

java.lang.Object
org.apache.hadoop.hdfs.protocol.LayoutVersion

@Private public class LayoutVersion extends Object
This class tracks changes in the layout version of HDFS. Layout version is changed for following reasons:
  1. The layout of how namenode or datanode stores information on disk changes.
  2. A new operation code is added to the editlog.
  3. Modification such as format of a record, content of a record in editlog or fsimage.

How to update layout version:
When a change requires new layout version, please add an entry into LayoutVersion.Feature with a short enum name, new layout version and description of the change. Please see LayoutVersion.Feature for further details.