Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-19139

HTTP Client step - Connection timeout property not working as expected.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Severity: Medium
    • Resolution: Unresolved
    • Affects Version/s: 9.0.0 GA, 9.1, 8.3.0.19 GA
    • Fix Version/s: Backlog
    • Component/s: Step
    • Labels:
      None
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Steps to Reproduce:
      Hide

      1. Run the following command in the Web server to discard SYN packets from client to Web server for disablement TCP connection between the Web server and HTTP client.

      1. iptables -A INPUT -p tcp -d <IP address of the Web server> --dport 80 --tcp-flags ALL SYN -j DROP
        2. Define KTR as the following.
        1. Open a new transformation with Spoon.
        2. Put Generate rows step.
        3. Double-click the Generate rows step and set the following properties.
      "Step name" : Generate rows
      "Limit" : 1
      "Never stop generating rows" : No
      The others : empty

      4. Put HTTP client step.
      5. Connect a hop from the Generate rows step to the HTTP client step.
      6. Double-click "HTTP client" step and set following properties.

      "Step name" : HTTP client
      "URL": http://xxx.xxx.xxx.xxx/xxx <IP address of the Web server>
      "Accept URL from field?" : No
      "Encoding (empty means standard) : UTF-8
      "Connection timeout" : 1000
      "Socket timeout" : 10000
      "Connection close wait time" : 10000
      "Result field name" : result
      The others : empty

      Show
      1. Run the following command in the Web server to discard SYN packets from client to Web server for disablement TCP connection between the Web server and HTTP client. iptables -A INPUT -p tcp -d <IP address of the Web server> --dport 80 --tcp-flags ALL SYN -j DROP 2. Define KTR as the following. 1. Open a new transformation with Spoon. 2. Put Generate rows step. 3. Double-click the Generate rows step and set the following properties. "Step name" : Generate rows "Limit" : 1 "Never stop generating rows" : No The others : empty 4. Put HTTP client step. 5. Connect a hop from the Generate rows step to the HTTP client step. 6. Double-click "HTTP client" step and set following properties. — "Step name" : HTTP client "URL":  http://xxx.xxx.xxx.xxx/xxx  <IP address of the Web server> "Accept URL from field?" : No "Encoding (empty means standard) : UTF-8 "Connection timeout" : 1000 "Socket timeout" : 10000 "Connection close wait time" : 10000 "Result field name" : result The others : empty

      Description

      In the HTTP client step, the connection timeout is not being considered.

      The "Connection timeout" value is set to 1,000ms, but KTR ended approximately 10,000ms after execution with an error whose message is "connect timed out".

       

        Attachments

        1. spoon logs.txt
          5 kB
        2. test.ktr
          13 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jagdeeshss Jagdeeshss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: