Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-12895

GetSmbFile and PutSmbFile has forced 5 sec timeout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.25.0, 2.0.0-M2
    • 1.26.0, 2.0.0-M3
    • Extensions
    • None

    Description

      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:

      ...
      import static org.apache.nifi.smb.common.SmbProperties.TIMEOUT;
      ...
      descriptors.add(TIMEOUT);
      ...
      

      Attachments

        Issue Links

          Activity

            People

              turcsanyip Peter Turcsanyi
              andersns Anders
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m