You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/11/24 16:59:19 UTC
[GitHub] [hbase] saintstack commented on a change in pull request #2703: HBASE-25324 Remove unnecessary array to list conversion in SplitLogManager
saintstack commented on a change in pull request #2703:
URL: https://github.com/apache/hbase/pull/2703#discussion_r529731374
##########
File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java
##########
@@ -242,11 +242,11 @@ public long splitLogDistributed(final Set<ServerName> serverNames, final List<Pa
long totalSize = 0;
TaskBatch batch = null;
long startTime = 0;
- FileStatus[] logfiles = getFileList(logDirs, filter);
- if (logfiles.length != 0) {
+ List<FileStatus> logfiles = getFileList(logDirs, filter);
+ if (logfiles.size() != 0) {
Review comment:
s/logfiles.size != 0/logfiles.isEmpty()/
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org