Skip to content

Commit

Permalink
HBASE-27636 The "CREATE_TIME_TS" value of the hfile generated by the …
Browse files Browse the repository at this point in the history
…HFileOutputFormat2 class is 0 (#5034)

Co-authored-by: selina.yan <selina.yan@huolala.cn>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
Kerasone and selina.yan committed Feb 18, 2023
1 parent 1664b6b commit 5f0dcdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ private WriterLength getNewWriter(byte[] tableName, byte[] family, Configuration
HFileContextBuilder contextBuilder = new HFileContextBuilder().withCompression(compression)
.withDataBlockEncoding(encoding).withChecksumType(StoreUtils.getChecksumType(conf))
.withBytesPerCheckSum(StoreUtils.getBytesPerChecksum(conf)).withBlockSize(blockSize)
.withColumnFamily(family).withTableName(tableName);
.withColumnFamily(family).withTableName(tableName)
.withCreateTime(EnvironmentEdgeManager.currentTime());

if (HFile.getFormatVersion(conf) >= HFile.MIN_FORMAT_VERSION_WITH_TAGS) {
contextBuilder.withIncludesTags(true);
Expand Down

0 comments on commit 5f0dcdd

Please sign in to comment.