Bug 1044581

Summary: Intermittent ArrayIndexOutOfBoundsException under high load in drools
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Anton Giertli <agiertli>
Component: JBoss RulesAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.3.1CC: rwagner, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1044577 Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1044577, 1054313    
Bug Blocks:    
Attachments:
Description Flags
reproducer none

Description Anton Giertli 2013-12-18 15:34:49 UTC
Created attachment 838410 [details]
reproducer

+++ This bug was initially created as a clone of Bug #1044577 +++

Description of problem:
A customer is running CEP with a JPA persisted ksession (created by JPAKnowledgeService.newStatefulKnowledgeSession()) on SOA-P. They are seeing the Exception below intermittently under high-load.

Version-Release number of selected component (if applicable):


How reproducible:
See the attachment

Steps to Reproduce:
- Create one ksession by JPAKnowledgeService.newStatefulKnowledgeSession()
- Insert events to a shared EntryPoint from multiple threads
Run CEPTest
Actual results:
Caused by: java.lang.ArrayIndexOutOfBoundsException: 4
        at org.drools.marshalling.impl.ProtobufOutputMarshaller.orderFacts(ProtobufOutputMarshaller.java:592)
        at org.drools.marshalling.impl.ProtobufOutputMarshaller.writeFactHandles(ProtobufOutputMarshaller.java:533)
        at org.drools.marshalling.impl.ProtobufOutputMarshaller.serializeSession(ProtobufOutputMarshaller.java:139)
        at org.drools.marshalling.impl.ProtobufOutputMarshaller.writeSession(ProtobufOutputMarshaller.java:100)
...

Expected results:


Additional info:

Comment 1 Rick Wagner 2013-12-18 16:21:39 UTC
This BZ has been added to the inclusion list for the next SOA-P 5.3.1 Roll up, tracked at [1].

If the underlying BRMS issue is still open at the time the Roll up is productised, we will move it to the next.

Rick

[1] https://mojo.redhat.com/docs/DOC-87990