Bug 822240
Summary: | Embedded container loses transaction when using JDBC connection with CMTs | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | John Sanda <jsanda> | ||||
Component: | Tests | Assignee: | Nobody <nobody> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.4 | CC: | hrupp, jshaughn | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 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: | |||||||
Attachments: |
|
Description
John Sanda
2012-05-16 19:19:24 UTC
Created attachment 585042 [details]
Test that reproduces the issue
Drop this test in the server/jar module under src/test/java and run as follows,
$ mvn test -Dtest=MetricsTest
Inspect the appropriate raw table and you will observe that the data is not there.
Just to confirm, after nearly a day of trying various combinations I could not get around,or explain, this strange behavior. The first call to addNumericData does not commit the data written to the raw data table. The processing all works, the Connection is valid and autoCommit is off at the time the SLSB method exists. All subsequent calls succeed. It does not seem to have anything to do with the particulars of the call as I stripped out almost everything in my testing. The dummy data workaround works, but note that you must actually send in data and manipulate the db. It just seems like the first call gets rolled back instead of committed. Does not make a lot of sense. per BZ triage 5/21/2012 (asantos, loleary, ccrouch, mfoley) |