[
https://issues.apache.org/jira/browse/AMBARI-24833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16693740#comment-16693740
]
ASF GitHub Bot commented on AMBARI-24833:
-----------------------------------------
swagle commented on a change in pull request #33: AMBARI-24833. Do not open FS
on main thread.
URL: https://github.com/apache/ambari-logsearch/pull/33#discussion_r235153497
##########
File path:
ambari-logsearch-logfeeder/src/main/java/org/apache/ambari/logfeeder/output/cloud/upload/HDFSUploadClient.java
##########
@@ -85,17 +84,16 @@ public void init(LogFeederProps logFeederProps) {
}
logger.info("HDFS client - will use '{}' permission for uploaded files",
hdfsOutputConfig.getHdfsFilePermissions());
LogFeederHDFSUtil.overrideFileSystemConfigs(logFeederProps, configuration);
- this.fs = LogFeederHDFSUtil.buildFileSystem(configuration);
}
@Override
public void upload(String source, String target) throws Exception {
+ final FileSystem fs = LogFeederHDFSUtil.buildFileSystem(configuration);
Review comment:
Should this be a try..finally block with close?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Log Feeder: send logs to cloud storage (gcs/s3 etc.)
> ----------------------------------------------------
>
> Key: AMBARI-24833
> URL: https://issues.apache.org/jira/browse/AMBARI-24833
> Project: Ambari
> Issue Type: Bug
> Components: ambari-logsearch
> Affects Versions: 2.7.0
> Reporter: Olivér Szabó
> Assignee: Olivér Szabó
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.8.0
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)