You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Turcsanyi (Jira)" <ji...@apache.org> on 2024/03/23 18:01:00 UTC
[jira] [Assigned] (NIFI-12895) GetSmbFile and PutSmbFile has forced 5 sec timeout
[ https://issues.apache.org/jira/browse/NIFI-12895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Turcsanyi reassigned NIFI-12895:
--------------------------------------
Assignee: Peter Turcsanyi
> GetSmbFile and PutSmbFile has forced 5 sec timeout
> --------------------------------------------------
>
> Key: NIFI-12895
> URL: https://issues.apache.org/jira/browse/NIFI-12895
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.25.0
> Reporter: Anders
> Assignee: Peter Turcsanyi
> Priority: Major
>
> It seems like timeout was introduced with the SmbjClientProviderService, and
> SmbUtils.java defines the withTimeout setting from the underlying smbj library.
> In SmbProperties.java, the default timeout value is set to 5 sec and you can configure it in the SmbjClientProviderService.
> However, the older GetSmbFile and PutSmbFile processors uses SmbUtils.java as well, but the timeout configuration item is not exposed in their config ui.
> The timeout setting should be added to the UI for GetSmbFile and PutSmbFile.
> I think it's enough to add the following lines to PutSmbFile.java and GetSmbFile.java:
> {code}
> ...
> import static org.apache.nifi.smb.common.SmbProperties.TIMEOUT;
> ...
> descriptors.add(TIMEOUT);
> ...
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)