cancel
Showing results for 
Search instead for 
Did you mean: 

Important: Activiti 5.15 and MySQL 5.6+ users

jbarrez
Star Contributor
Star Contributor
Hello all,

As you probably read, we released Activiti 5.15 last Friday (http://bpmn20inaction.blogspot.com/2014/03/activiti-515-released.html).

Eager users have tried it out already (which is awesome!) and notified us that there is a bug when using MySQL 5.6+ and executing the upgrade scripts (for example http://forums.activiti.org/content/upgrade-514-515-mysql-error).

The bug is due to a combination of
1) An upgrade around MySQL timestamp precision (see 'Note for MySQL users' at http://activiti.org/userguide/index.html#creatingDatabaseTable).
2)  Not having a unit test in our QA environment where we test engine upgrades on all databases. So we did have a test for it, but not with the correct type of data that causes this bug.

So we've decided to release a 5.15.1 version shortly.

Master has been switched to this new version (https://github.com/Activiti/Activiti/commit/d9eb4f1f698eb19f39c1993d7c0e9e39f342089a), the bug has been fixed and the upgrade mechanism has been made better (https://github.com/Activiti/Activiti/commit/41a01f2dd44884a22ce314a1f22f6e3ccba61adc). And of course we've added upgrade tests to cover the bug (https://github.com/Activiti/Activiti-Upgrade/commit/83a39f1b45620494f0dbb7bf7ac105813cad2b5e).

5.15.1 will be a seamless upgrade from 5.15 and any version downwards (starting from 5.7).
We will wait a couple of days to see if any other major bug is uncovered and release it the end of this week.



TL;DR: Are you using MySQL 5.6+: don't upgrade to 5.15 yet, stick to 5.14.  Activiti 5.15.1 will be released shortly.Other databases are fine.


Sorry for any inconvenience this caused. And many thanks to the users who test-drive the Activiti releases!
4 REPLIES 4

pkonyves
Champ in-the-making
Champ in-the-making
Hi,

We just ran into the problem, that the create scripts did not work with mysql 5.1 (yes, old, but we are using it…), so we had to use the mysql55 scripts. However I did not find evidence in the Activiti code ( https://github.com/Activiti/Activiti/commit/41a01f2dd44884a22ce314a1f22f6e3ccba61adc ) that the upgrade mechanism is aware of the mysql55 scripts. The DbSqlSession#getResourceForDbOperation (https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/...) method takes the DB type, but that cannot be mysql55 (I think), only mysql. So for mysql version < 5.6 should one do the upgrades manually?

THanks

jbarrez
Star Contributor
Star Contributor
The code does take that in account:

https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/...

It should take the 5.5 sql. But i assume that's not doing it for you? What do you see passing for the  logging line at https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/... ?

pkonyves
Champ in-the-making
Champ in-the-making
Most probably it works then. I actually did not try the upgrade mechanism, just looked at the code if it should work, and found no evidence, because I was expecting activiti to return with the activiti.mysql55.*.sql files in getResourceForDbOperation method, but now I can see you choose another solution.

atifraza
Champ in-the-making
Champ in-the-making
I have done the following changes to make explorer multi tenant aware as I needed very much.

1. Extended DefaultLoginHandler java class and injected from activiti-standalone-context.xml and did the following customizations.
1.1) Changed the definition of injection of DefaultLoginHandler in activiti-standalone-context.xml file as below