wchevreuil commented on code in PR #7124:
URL: https://github.com/apache/hbase/pull/7124#discussion_r2192735121
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java:
##########
@@ -899,12 +909,19 @@ public void appendTrackedTimestampsToMetadata() throws
IOException {
appendFileInfo(EARLIEST_PUT_TS, Bytes.toBytes(earliestPutTs));
}
+ public void appendCustomCellTimestampsToMetadata(TimeRangeTracker
timeRangeTracker)
+ throws IOException {
+ // TODO: The StoreFileReader always converts the byte[] to TimeRange
+ // via TimeRangeTracker, so we should write the serialization data of
TimeRange directly.
Review Comment:
This whole code (TODO comments included) came together from StoreFileWriter
with the changes of HBASE-28469.
I think this TODO refers to a nice to have that would easy debugging. I
guess a separate, minor priority JIRA.
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java:
##########
@@ -186,7 +194,9 @@ public HFileWriterImpl(final Configuration conf,
CacheConfig cacheConf, Path pat
this.path = path;
this.name = path != null ? path.getName() : outputStream.toString();
this.hFileContext = fileContext;
+ // TODO: Move this back to upper layer
Review Comment:
Yeah, added this back then because I wasn't happy with adding time range
tracking logic into HFileWriterImpl (originally, it was in StoreFileWriter).
This was introduced here by HBASE-28469, IIRC, as a mean to track dates also
when flushing, rather than at compaction only.
I think we should keep the TODO and revisit this code later on a separate
JIRA. We still have to work on how to track custom tiering value on flushes,
maybe that would be a good time to solve this TODO as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]