infinispan/infinispan — pull request #1778 by Sanne (2013-04-22 21:12:26+00:00)
Title: ISPN-3033 Lucene index stored in a StringBased CacheStore can get an una...

...ligned bufferSize

https://github.com/Sanne/infinispan/pull/new/ISPN-3033

There is no test as there was a test already; just that the existing test wouldn't
catch this case because the bufferSize wasn't part of the equals contract: the
assertion used the key.equals to verify correct interpretation.
Fixing the equals activated the unit test: org.infinispan.lucene.Key2StringMapperTest

NoopSegmentReadLockerTest had to be fixed too as there was a mistake which wasn't spotted
as it also took advantage of the same equals flaw.