Class ContainerReader
- All Implemented Interfaces:
Runnable
../hdds/VERSION
../hdds/<<clusterUuid>>/current/<<containerDir>>/<<containerID >/metadata/<<containerID>>.container
../hdds/<<clusterUuid>>/current/<<containerDir>>/<<containerID >/<<dataPath>>
Some ContainerTypes will have extra metadata other than the .container file. For example, KeyValueContainer will have a .db file. This .db file will also be stored in the metadata folder along with the .container file.
../hdds/<<clusterUuid>>/current/<<containerDir>>/<<KVcontainerID >/metadata/<<KVcontainerID>>.db
Note that the <<dataPath>> is dependent on the ContainerType. For KeyValueContainers, the data is stored in a "chunks" folder. As such, the <<dataPath>> layout for KeyValueContainers is:
../hdds/<<clusterUuid>>/current/<<containerDir>>/<<KVcontainerID >/chunks/<<chunksFile>>
-
Constructor Summary
ConstructorsConstructorDescriptionContainerReader(MutableVolumeSet volSet, HddsVolume volume, ContainerSet cset, org.apache.hadoop.hdds.conf.ConfigurationSource conf, boolean shouldDelete) -
Method Summary
Modifier and TypeMethodDescriptionvoidreadVolume(File hddsVolumeRootDir) voidrun()voidverifyAndFixupContainerData(ContainerData containerData) Verify ContainerData loaded from disk and fix-up stale members.
-
Constructor Details
-
ContainerReader
public ContainerReader(MutableVolumeSet volSet, HddsVolume volume, ContainerSet cset, org.apache.hadoop.hdds.conf.ConfigurationSource conf, boolean shouldDelete)
-
-
Method Details
-
run
public void run() -
readVolume
-
verifyAndFixupContainerData
Verify ContainerData loaded from disk and fix-up stale members. Specifically the in memory values of blockCommitSequenceId, delete related metadata, bytesUsed and block count.- Parameters:
containerData-- Throws:
IOException
-