[
https://issues.apache.org/jira/browse/HBASE-25324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239643#comment-17239643
]
Hudson commented on HBASE-25324:
--------------------------------
Results for branch master
[build #140 on
builds.a.o|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/140/]:
(x) *{color:red}-1 overall{color}*
----
details (if available):
(x) {color:red}-1 general checks{color}
-- For more information [see general
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/140/General_20Nightly_20Build_20Report/]
(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3)
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/140/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/140/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test{color}
> Remove unnecessary array to list conversion in SplitLogManager
> --------------------------------------------------------------
>
> Key: HBASE-25324
> URL: https://issues.apache.org/jira/browse/HBASE-25324
> Project: HBase
> Issue Type: Improvement
> Reporter: yuqi
> Assignee: yuqi
> Priority: Minor
> Fix For: 3.0.0-alpha-1, 2.4.0
>
>
> {code:java}
> public static List<FileStatus> getFileList(final Configuration conf, final
> List<Path> logDirs,
> final PathFilter filter)
> throws IOException {
> List<FileStatus> fileStatus = new ArrayList<>();
> ....
> FileStatus[] a = new FileStatus[fileStatus.size()];
> //list to array
> return fileStatus.toArray(a);
> }
> public List<FileStatus> getWALsToSplit(ServerName serverName, boolean
> splitMeta)
> throws IOException {
> List<Path> logDirs =
> master.getMasterWalManager().getLogDirs(Collections.singleton(serverName));
> FileStatus[] fileStatuses =
> SplitLogManager.getFileList(this.conf, logDirs, splitMeta ?
> META_FILTER : NON_META_FILTER);
> LOG.info("{} WAL count={}, meta={}", serverName, fileStatuses.length,
> splitMeta);
> //array convert to list which is just contrary to the logic of
> getFileList
> return Lists.newArrayList(fileStatuses);
>
> {code}
> After judge the logic, there seems no need to make such a conversion.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)