Class FSImageFormatPBSnapshot.Saver
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.snapshot.FSImageFormatPBSnapshot.Saver
- Enclosing class:
- FSImageFormatPBSnapshot
Saving snapshot related information to protobuf based FSImage
-
Constructor Summary
ConstructorsConstructorDescriptionSaver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder headers, SaveNamespaceContext context, FSNamesystem fsn) -
Method Summary
Modifier and TypeMethodDescriptionlongNumber of non-fatal errors detected while writing the SnapshotDiff and INodeReference sections.voidThis can only be called after serializing both INode_Dir and SnapshotDiffvoidsave all the snapshot diff to fsimagevoidsave all the snapshottable directories and snapshots to fsimage
-
Constructor Details
-
Saver
public Saver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder headers, SaveNamespaceContext context, FSNamesystem fsn)
-
-
Method Details
-
serializeSnapshotSection
save all the snapshottable directories and snapshots to fsimage- Throws:
IOException
-
serializeINodeReferenceSection
This can only be called after serializing both INode_Dir and SnapshotDiff- Throws:
IOException
-
serializeSnapshotDiffSection
save all the snapshot diff to fsimage- Throws:
IOException
-
getNumImageErrors
public long getNumImageErrors()Number of non-fatal errors detected while writing the SnapshotDiff and INodeReference sections.- Returns:
- the number of non-fatal errors detected.
-