Bug 1175388

Summary: (6.4.0)[HHH-6670][HHH-9500] Errors when dropping contraints and tables that do not exist
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: sgilda
Component: HibernateAssignee: Gail Badner <gbadner>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Simka <msimka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: gbadner, ggastald, kkhan, msimka, smarlow
Target Milestone: ER1   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1175910 (view as bug list) Environment:
Last Closed: 2019-08-19 12:42:27 UTC 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:    
Bug Blocks: 1173454, 1175910, 1175912    

Description sgilda 2014-12-17 15:56:29 UTC
Description of problem:

Fixes have been submitted for the following issues: 
    https://hibernate.atlassian.net/browse/HHH-6670
    https://hibernate.atlassian.net/browse/HHH-9545

We need these fixes merged into JBoss EAP. Many of the quickstart README files have a note to ignore the server log errors.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 George Gastaldi 2014-12-17 16:01:52 UTC
I proposed a patch on HHH-6670: https://github.com/hibernate/hibernate-orm/pull/856

And here is for the 4.2 branch: https://github.com/hibernate/hibernate-orm/pull/857

Comment 2 George Gastaldi 2014-12-17 18:18:37 UTC
Here is the EAP output with the mentioned errors: 
http://pastebin.test.redhat.com/252909

Comment 3 George Gastaldi 2014-12-17 18:19:46 UTC
HHH-9545 doesn't have a fix yet. 
Our best bet is to override the dropConstraints() method on H2Dialect and make it return false.

Comment 4 sgilda 2014-12-17 19:24:19 UTC
Many of the README files also list the errors that appear in the console, for example: https://github.com/jboss-developer/jboss-eap-quickstarts/tree/6.4.x-develop/forge-from-scratch#server-log-expected-warnings-and-errors

Comment 6 George Gastaldi 2014-12-17 20:31:55 UTC
This is also covered in the following issue: 
https://hibernate.atlassian.net/browse/HHH-9500

Patch provided in: https://github.com/hibernate/hibernate-orm/pull/859

Comment 11 sgilda 2014-12-18 21:02:45 UTC
Thanks Gail! I'll watch for the next build and remove the text from the quickstart README files.

Comment 12 Kabir Khan 2015-01-06 13:33:19 UTC
Hibernate upgrade 4.2.17.Final-redhat-1/https://bugzilla.redhat.com/show_bug.cgi?id=1173454 should have fixed this

Comment 13 Martin Simka 2015-01-19 11:53:43 UTC
verified on EAP 6.4.0.ER1

Comment 14 Gail Badner 2015-01-28 20:30:07 UTC
As noted in https://bugzilla.redhat.com/show_bug.cgi?id=1175910, 4.2.17.Final-redhat-1 does not contain the fix for HHH-9545. 

Can that just be dropped from the list? This may involve leaving some errors in the documentation.

Comment 15 Gail Badner 2015-01-28 20:31:40 UTC
Is QE the right person to answer, "Can that just be dropped from the list? This may involve leaving some errors in the documentation."?