You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Xiao Zhang (Jira)" <ji...@apache.org> on 2022/06/08 03:34:00 UTC
[jira] [Created] (HBASE-27099) In the HFileBlock class, the log printing fspread/fsread cost time unit should be milliseconds
Xiao Zhang created HBASE-27099:
----------------------------------
Summary: In the HFileBlock class, the log printing fspread/fsread cost time unit should be milliseconds
Key: HBASE-27099
URL: https://issues.apache.org/jira/browse/HBASE-27099
Project: HBase
Issue Type: Bug
Components: HFile
Affects Versions: 2.4.12, 2.3.7, 3.0.0-alpha-2, 2.5.1
Reporter: Xiao Zhang
Assignee: Xiao Zhang
In the HFileBlock class
{code:java}
protected HFileBlock readBlockDataInternal(FSDataInputStream is, long offset, long onDiskSizeWithHeaderL, boolean pread, boolean verifyChecksum, boolean updateMetrics, boolean intoHeap) throws IOException {
...
long startTime = EnvironmentEdgeManager.currentTime();
...
long duration = EnvironmentEdgeManager.currentTime() - startTime;
if (updateMetrics) {
HFile.updateReadLatency(duration, pread);
}
...
LOG.trace("Read {} in {} ns", hFileBlock, duration);
...
}{code}
But Environment EdgeManager.currentTime returns milliseconds.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)