Skip to content

Commit

Permalink
HDDS-2132. TestKeyValueContainer is failing (#1457).
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored and bshashikant committed Sep 17, 2019
1 parent 4f67081 commit e54977f
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -198,8 +198,9 @@ public static void parseKVContainerData(KeyValueContainerData kvContainerData,
kvContainerData.setKeyCount(liveKeys.size());
byte[] bcsId = metadata.getStore().get(DFSUtil.string2Bytes(
OzoneConsts.BLOCK_COMMIT_SEQUENCE_ID_PREFIX));
Preconditions.checkNotNull(bcsId);
kvContainerData.updateBlockCommitSequenceId(Longs.fromByteArray(bcsId));
if (bcsId != null) {
kvContainerData.updateBlockCommitSequenceId(Longs.fromByteArray(bcsId));
}
}
}

Expand Down

0 comments on commit e54977f

Please sign in to comment.