Bug 1249260
Summary: | [QE](6.1.z) Reading tasks from DB on MySQL 5.5 returns tasks with createdOn field that contains midnight time | ||
---|---|---|---|
Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Alessandro Lazarotti <alazarot> |
Component: | jBPM Core | Assignee: | Alessandro Lazarotti <alazarot> |
Status: | CLOSED EOL | QA Contact: | Tibor Zimanyi <tzimanyi> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 6.1.0 | CC: | kverlaen, tzimanyi |
Target Milestone: | CR1 | ||
Target Release: | 6.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1248527 | Environment: | |
Last Closed: | 2020-03-27 20:05:15 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: | 1248527 | ||
Bug Blocks: | 1249860 |
Description
Alessandro Lazarotti
2015-08-01 01:00:24 UTC
this is a mysql limitation as it does not store the milliseconds part of the time that is used to query for [1]. Since the rest does have a difference for the query on milliseconds level the tests in most of the cases fails. I'll enhance the test to rely on second level difference so it will satisfy all data bases. Looks like 5.6 of mysql is adding some support for this though not sure how it will work from JPA provider as it might require some additional configuration. Anyway, milliseconds level is not a big issue in my opinion especially for task queries. [1] http://dev.mysql.com/doc/refman/5.5/en/fractional-seconds.html [2] http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html improved test case back ported to 6..x branch jbpm https://github.com/droolsjbpm/jbpm/commit/075f74a475ba9ea737ff66f44dd49a01dc91029e Verified by running LifeCycleLocalCommandBasedTest.testCompleteByActiveTasks on MySQL 5.5. |