Race condition when displaying progress message
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
There is a possible race condition in all(?) wizards that use progress bar. If the final progress update just before the work is complete is delayed it seems like the messages from the actual work can be overwritten by progress message. I have never seen it on the development system, but it happened on the production server when testing the new batch importer for follow-up blood (see #1234).
The situation can be triggered by adding a
Thread.sleep() call to the
To avoid the problem I think the progress messages should not use the same element as the final messages from the wizard is using.