Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-1185

url.validation.ping.interval does not work for C Agent 5

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.0
    • Fix Version/s: 5.5.0.0
    • Component/s: Web Agents
    • Environment:
      OpenAM Web Agent for Apache Server 2.4.x 64bit
       Version: 5.0.0-M3
       Revision: 5bad925
       Build machine:
       Build date: Oct 16 2017 10:11:00
    • Target Version/s:
    • Verified Version/s:
    • Sprint:
      2018.9 The Sphinx

      Description

      url.validation.ping.interval does not work for C Agent

      Steps to reproduce

      1.) Set up 2 AMs and create agent profile
      2.) Install policy agent and set following properties in agent.conf file

      com.sun.identity.agents.config.naming.url = http://perf-openam.internal.forgerock.com:8080/am http://perf-openam2.internal.forgerock.com:8080/am
      com.sun.identity.agents.config.connect.timeout = 4000
      ...
      com.forgerock.agents.ext.url.validation.default.url.set = 0,1
      com.forgerock.agents.ext.url.validation.level = 1
      com.forgerock.agents.ext.url.validation.ping.interval = 5
      com.forgerock.agents.ext.url.validation.ping.miss.count = 2
      com.forgerock.agents.ext.url.validation.ping.ok.count = 2
      

      3.) Set the debug log to info, in AM console and also in agent.conf file and start agent
      4.) Hit some protected page
      5.) Observe /apache24_agent/instances/agent_1/log/agent.log

      Observed

      As you can see from following logs, the validation does not happen every 5 second as we set in com.forgerock.agents.ext.url.validation.ping.interval, but every 50 sec (this interval is still the same, not related to config )

      2017-10-19 15:29:28.033 +0100    INFO [9b4b9131-3fee-fd4b-ae1f-53142f737df8]url_validator_worker(): continue with http://perf-openam.internal.forgerock.com:8080/am
      2017-10-19 15:30:18.038 +0100    INFO [89b6559f-244b-8246-9a09-d63fc032fba7]url_validator_worker(): continue with http://perf-openam.internal.forgerock.com:8080/am
      

      Expected result

      Interval between pings is equals to set value

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nick.james Nicholas James
                Reporter:
                richard.hruza Richard Hruza
                QA Assignee:
                Richard Hruza
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: