HDDS-2132. TestKeyValueContainer is failing (#1457).

This commit is contained in:
Doroszlai, Attila 2019-09-17 11:01:33 +02:00 committed by bshashikant
parent 4f67081038
commit e54977f888
1 changed files with 3 additions and 2 deletions

View File

@ -198,10 +198,11 @@ public final class KeyValueContainerUtil {
kvContainerData.setKeyCount(liveKeys.size());
byte[] bcsId = metadata.getStore().get(DFSUtil.string2Bytes(
OzoneConsts.BLOCK_COMMIT_SEQUENCE_ID_PREFIX));
Preconditions.checkNotNull(bcsId);
if (bcsId != null) {
kvContainerData.updateBlockCommitSequenceId(Longs.fromByteArray(bcsId));
}
}
}
/**
* Returns the path where data or chunks live for a given container.