Red Hat Bugzilla – Bug 1287609
Race condition on property filter
Last modified: 2016-07-22 10:39:20 EDT
Description of problem:
In Satellite, some clients are issuing GET to this url  to get entitlements. Sometimes these calls fail with . Looking at logs (such as in attached customer case) it seems that problem is Race condition in our DynamicPropertyFilter that is not thread safe.
Its hard to judge the impact of this, customer issue was solved by reindex. But its possible it was caused by this.
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 3
Version-Release number of selected component (if applicable):
0.9, but the same code is in master
Steps to Reproduce:
No easy reproducer here.
1. Just call /candlepin/consumers/<UUID>/entitlements?exclude=certificates.key&exclude=certificates.cert simultaneuously
sometimes you get org.candlepin.common.exceptions.mappers.CandlepinExceptionMapper - Runtime Error com.fasterxml.jackson.databind.JsonMappingException: Index: 0, Size: 3
Returned list of Entitlements
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see firstname.lastname@example.org with any questions
Moving to closed per the updated candlepin process for bugs that have been merged or have been taken care of.