Hide Forgot
securitylevel_name: Public A KnowledgeAgent set up to monitor a .drl file, and set to perform incremental builds, will correctly monitor that file for changes. When a change to that file, however, results in a DRL syntax exception (or any other KnowledgeBuilder errors), the KnowledgeAgent no longer monitors the resource for changes. This means that a typo in the file effectively stops the KnowledgeAgent from ever seeing that file again. Consequently, an error in the DRL file requires a restart to whatever server is using the KnowledgeAgent. Esteban and I have found that the error is related to lines 337 and following of KnowledgeAgentImpl.java. Here is a snippet from one of his emails to me: "The problem seems to be related to the lines you mentioned. When a resource is modified, all its knowledgeDefinition->resource are cleared and reconstructed later. I don't see any reason to unsubscribe the listener though. So the call to Set<KnowledgeDefinition> definitions = this.removeResourceMapping(resource, true); should be Set<KnowledgeDefinition> definitions = this.removeResourceMapping(resource, false); "That means: remove all the mappings but don't unsubscribe me (the kagent) as a listener." Further background can be found at http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-What-happens-when-an-incremental-KA-rebuild-fails-td2258083.html
Link: Added: This issue depends JBRULES-2904
Link: Removed: This issue depends JBRULES-2904
Link: Added: This issue is a dependency of JBRULES-2904
Link: Added: This issue depends BRMS-624
Candiate only, not committed.
We have a One Off for this issue that should be ported to the product branch. BRMS-625
The fix for this should be in the 5.2.x branch.
(In reply to comment #7) > The fix for this should be in the 5.2.x branch. In that case, I'm sending this to be picked up by QE.
This bug is not present in BRMS-5.3.0-ER3.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: https://bugzilla.redhat.com/show_bug.cgi?id=724786 A KnowledgeAgent set up to monitor a .drl file, will correctly monitor that file for changes unless a change to the file introduces an error, at which point the knowledgeAgent no longer monitors the resource for changes. Fix and Result still required.
Hi Toni, I've added cause and consequence for the release notes, however I still need fix and result. Please provide (in bullet point is fine) how this was resolved. Thanks Lee
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,5 +1 @@ -https://bugzilla.redhat.com/show_bug.cgi?id=724786 +A KnowledgeAgent set up to monitor a .drl file would correctly monitor the file for changes unless a change to the file introduced an error, at which point the knowledgeAgent would no longer monitor the resource for changes. This issue has been resolved.- -A KnowledgeAgent set up to monitor a .drl file, will correctly monitor that file for changes unless a change to the file introduces an error, at which point the knowledgeAgent no longer monitors the resource for changes. - -Fix and Result still required.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -A KnowledgeAgent set up to monitor a .drl file would correctly monitor the file for changes unless a change to the file introduced an error, at which point the knowledgeAgent would no longer monitor the resource for changes. This issue has been resolved.+A KnowledgeAgent set up to monitor a .drl file would correctly monitor the file for changes unless a change to the file introduced an error, at which point the knowledgeAgent would no longer monitor the resource for changes.