Avoid random failures in TestRunnerStandalone.runPerformanceTest

Description

The failures happen randomly and are caused by concurrency issues:

Source: http://ci.hibernate.org/job/hibernate-search-master/org.hibernate$hibernate-search-performance-orm/1115/testReport/junit/org.hibernate.search.test.performance/TestRunnerStandalone/runPerformanceTest/

The exact cause is the update tasks in that test, such as UpdateBookRatingTask or UpdateBookTotalSoldTask. Those tasks execute concurrently, and they pick an entity ID randomly to perform the update on. In smoke tests, there are very few entities (10, I think) and thus a conflict is very likely.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Priority

Major
Configure