PDavid commented on code in PR #6585:
URL: https://github.com/apache/hbase/pull/6585#discussion_r1908942937
##########
hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp:
##########
@@ -95,7 +95,7 @@
count ++; %>
<tr>
<td><a href="storeFile.jsp?name=<%= sf.getEncodedPath() %>"><%=
sf.getPath() %></a></td>
- <td><%= (int) (fs.getLength(sf.getPath()) / 1024 / 1024) %></td>
+ <td><%= (int) (fs.getFileStatus(sf.getPath()).getLen() / 1024 /
1024) %></td>
Review Comment:
Yeah, me too. :see_no_evil:
Actually `org.apache.hadoop.fs.FileSystem.getLength()` also has the same
implementation:
```java
public long getLength(Path f) throws IOException {
return getFileStatus(f).getLen();
}
```
See:
https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java#L1913
--
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]