Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3576

Drools-camel-Server will hang indefinitely if URL referenced by <drools:resource> hangs

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 5.3.0.Final
    • drools-camel
    • None

    Description

      When Drools-camel-server has a knowledge session with <drools:resource source="http://remoteurl.com/drools/resource">, but the URL is not available... then instead of gracefully timing out... it will freeze Tomcat never to be unfrozen.

      This makes it so Guvnor and Drools execution sever can't be tested on the same Tomcat.

      Steps to reproduce:

      1) Get droolsjbpm-integration-distribution-5.3.0.Final\binaries\drools-camel-server-5.3.0.Final.war and Extract to $catalina_home/webapps/drools-server
      2) Get droolsjbpm-integration-distribution-5.3.0.Final\binaries\drools-camel-server-5.3.0.Final.war and Extract to $catalina_home/webapps/guvnor
      3) Deploy drools-camel-server and Guvnor on the same tomcat 6 server. Give it 512m permgen and 1000m max heap.
      4) Created a test Rule on guvnor called test. Binary PKG should be: http://localhost:8080/guvnor/rest/packages/test
      5) Stop Tomcat
      6) Edit drools-server/WEB-INF/classes/camel-client.xml

      change

      <from uri="direct://kservice"/>

      to

      <from uri="direct://kservice/rest"/>

      8) Edit knowledge-services.xml:

      Replace kbase with this one:

      <drools:kbase id="kbase1" node="node1">
      <drools:resources>
      <drools:resource type="PKG" source="http://localhost:8080/guvnor/rest/packages/test/binary"/>
      </drools:resources>
      </drools:kbase>

      9) Restart

      Because Guvnor is not started yet when Drools-camel-server is starting, Drools-camel-server sits and freezes up. Never unfreezes.

      Expected result: should try again after N ms for a maximum of M tries.

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            ndipiazza66 blah mcgee (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty