Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0019855
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagermajoralways2012-02-23 17:132012-03-02 15:39
ReportermarvintmView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionfixedFixed in Version3.0MP9
StatusclosedFix in branchFixed in SCM revisiondc38e73dea5a
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0019855: Under very specific circumstances, update.database can fail due to a Comparator error

DescriptionThe ChangeComparator in dbsourcemanager (in the DataComparator class) is not perfectly-transitive. Therefore, it can fail under some specific circumstances with an error similar to this:

 [java] 307486 INFO - Comparing databases to find differences
     [java] java.lang.IllegalArgumentException: Comparison method violates its general contract!
     [java] at java.util.TimSort.mergeLo(TimSort.java:747)
     [java] at java.util.TimSort.mergeAt(TimSort.java:483)
     [java] at java.util.TimSort.mergeCollapse(TimSort.java:410)
     [java] at java.util.TimSort.sort(TimSort.java:214)
     [java] at java.util.TimSort.sort(TimSort.java:173)
     [java] at java.util.Arrays.sort(Arrays.java:659)
     [java] at java.util.Collections.sort(Collections.java:217)
     [java] at org.apache.ddlutils.alteration.DataComparator.compareToUpdate(DataComparator.java:121)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:182)
     [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:86)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:38)
Steps To ReproduceThe way to reproduce this issue is not clear currently. It has previously happened to some customers, but we don't have a reliable way to reproduce it now.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0045418)
hgbot (developer)
2012-02-23 17:40

Repository: erp/devel/pi
Changeset: 334833f4c3a7927d855c61f66516cd27efbb2587
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Feb 23 17:32:29 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/334833f4c3a7927d855c61f66516cd27efbb2587 [^]

Fixed issue 19855. Comparator is now consistent and transitive. Fixed issue 13724. Dataset information will now be loaded from the database instead of the XML files.

---
M src-db/database/lib/dbsourcemanager.jar
---
(0045439)
hgbot (developer)
2012-02-24 11:27

Repository: erp/devel/dbsm-main
Changeset: dc38e73dea5a433238e3bbb98f1552264f7955dc
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Feb 23 17:15:13 2012 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/dc38e73dea5a433238e3bbb98f1552264f7955dc [^]

Fixed issue 19855. DataComparator now is consistent and transitive.

---
M src/org/apache/ddlutils/alteration/DataComparator.java
---
(0045494)
alostale (manager)
2012-02-28 08:38

This issue was reported because it was failing in a concrete instance. After applying the fix, this instance built successfully.
(0045944)
hudsonbot (developer)
2012-03-02 15:39

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/544d64e0c159 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2012-02-23 17:13 marvintm New Issue
2012-02-23 17:13 marvintm Assigned To => marvintm
2012-02-23 17:13 marvintm Modules => Core
2012-02-23 17:40 hgbot Checkin
2012-02-23 17:40 hgbot Note Added: 0045418
2012-02-23 17:40 hgbot Status new => resolved
2012-02-23 17:40 hgbot Resolution open => fixed
2012-02-23 17:40 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/334833f4c3a7927d855c61f66516cd27efbb2587 [^]
2012-02-24 11:27 hgbot Checkin
2012-02-24 11:27 hgbot Note Added: 0045439
2012-02-24 11:27 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/334833f4c3a7927d855c61f66516cd27efbb2587 [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/dc38e73dea5a433238e3bbb98f1552264f7955dc [^]
2012-02-28 08:38 alostale Note Added: 0045494
2012-02-28 08:38 alostale Status resolved => closed
2012-02-28 08:38 alostale Fixed in Version => 3.0MP9
2012-03-02 15:39 hudsonbot Checkin
2012-03-02 15:39 hudsonbot Note Added: 0045944


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker