TaskId generation h2/oracle

Today we stumbled upon an issue that two created Tasks of the same process have the same TaskId on two different engines (separate DBs). Our joined tasklist could not deal with it (map with taskId as key) and swallowed one task.

I wondered … when I look at taskIds on production systems, They have the form of a uuid, not numeric ints, right? Is there (and if so why) a difference between task ids for h2 and oracle DBs?

Thanks
Jan

Hi Jan,

which Id generator is configured in the engine? The DB Id generator generates simple numeric ids and should only be used for testing or debugging. The StrongUuidGenerator will generated UUID which should be used in production.

Cheers,
Sebastian

1 Like

Perfect … thank you very much!

We where starting dummy engines with h2 databases and must have gotten the test-configuration.
Will configere the StrongId.

I assume it would not really hurt to have strong ids in tests as well, right?

Hi Jan,

no you can always use the strong Id generator. While debugging it is a little bit more time consuming to compare ids but should be doable. :slight_smile:

Cheers,
Sebastian