JDBCStateRepository.setFeatureState is not thread safe

44 views
Skip to first unread message

Ido Raz

unread,
Dec 28, 2021, 1:59:04 AM12/28/21
to togglz-users
When running JDBCStateRepository.setFeatureState in parallel, some of the calls will fail on SQLIntegrityConstraintViolationException due to duplicate key.
In my case it happens when running tests in parallel -  TogglzTestExecutionListener is invoked in parallel and calls setFeatureState - which causes some of the tests to fail.

I tried creating pull request with a suggested fix, but was unauthorized.

How can this be resolved?

Thanks,
Ido
Reply all
Reply to author
Forward
0 new messages