Avro's ConcurrentServiceTest fails occasionally

Description

From the Jenkins builds on Windows http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/hibernate-search-master-windows/org.hibernate$hibernate-search-serialization-avro/362/testReport/org.hibernate.search.test.serialization/ConcurrentServiceTest/concurrentSerialization/ :

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 Aug 18, 2014 3:21:09 PM org.hibernate.search.engine.Version <clinit> INFO: HSEARCH000034: Hibernate Search 5.0.0-SNAPSHOT Aug 18, 2014 3:21:09 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit> INFO: HCANN000001: Hibernate Commons Annotations {4.0.5.Final} Aug 18, 2014 3:21:09 PM org.hibernate.search.engine.service.impl.StandardServiceManager$ServiceWrapper ensureStopped WARN: HSEARCH000025: Service provider has been used but not released: interface org.hibernate.search.indexes.serialization.spi.SerializationProvider Aug 18, 2014 3:21:09 PM org.hibernate.search.indexes.impl.DirectoryBasedIndexManager getSerializer INFO: HSEARCH000168: Serialization service Avro SerializationProvider v1.1 being used for index 'org.hibernate.search.test.serialization.RemoteEntity' org.hibernate.search.exception.SearchException: HSEARCH000083: Unable to serialize List<LuceneWork> at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.toSerializedModel(LuceneWorkSerializerImpl.java:102) at org.hibernate.search.test.serialization.ConcurrentServiceTest$SerializingThread.run(ConcurrentServiceTest.java:86) at org.hibernate.search.testsupport.concurrency.ConcurrentRunner$WrapRunnable.run(ConcurrentRunner.java:100) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NullPointerException at org.hibernate.search.indexes.serialization.impl.CopyTokenStream.fillCache(CopyTokenStream.java:91) at org.hibernate.search.indexes.serialization.impl.CopyTokenStream.buildSerializabletokenStream(CopyTokenStream.java:39) at org.hibernate.search.indexes.serialization.spi.LuceneFieldContext.getTokenStream(LuceneFieldContext.java:105) at org.hibernate.search.indexes.serialization.avro.impl.AvroSerializer.addFieldWithTokenStreamData(AvroSerializer.java:269) at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.buildDocument(LuceneWorkSerializerImpl.java:193) at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.toSerializedModel(LuceneWorkSerializerImpl.java:90) ... 5 more org.hibernate.search.exception.SearchException: HSEARCH000083: Unable to serialize List<LuceneWork> at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.toSerializedModel(LuceneWorkSerializerImpl.java:102) at org.hibernate.search.test.serialization.ConcurrentServiceTest$SerializingThread.run(ConcurrentServiceTest.java:86) at org.hibernate.search.testsupport.concurrency.ConcurrentRunner$WrapRunnable.run(ConcurrentRunner.java:100) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NullPointerException at org.hibernate.search.indexes.serialization.impl.CopyTokenStream.fillCache(CopyTokenStream.java:91) at org.hibernate.search.indexes.serialization.impl.CopyTokenStream.buildSerializabletokenStream(CopyTokenStream.java:39) at org.hibernate.search.indexes.serialization.spi.LuceneFieldContext.getTokenStream(LuceneFieldContext.java:105) at org.hibernate.search.indexes.serialization.avro.impl.AvroSerializer.addFieldWithTokenStreamData(AvroSerializer.java:269) at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.buildDocument(LuceneWorkSerializerImpl.java:193) at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.toSerializedModel(LuceneWorkSerializerImpl.java:90) ... 5 more org.hibernate.search.exception.SearchException: HSEARCH000083: Unable to serialize List<LuceneWork> at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.toSerializedModel(LuceneWorkSerializerImpl.java:102) at org.hibernate.search.test.serialization.ConcurrentServiceTest$SerializingThread.run(ConcurrentServiceTest.java:86) at org.hibernate.search.testsupport.concurrency.ConcurrentRunner$WrapRunnable.run(ConcurrentRunner.java:100) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NullPointerException at org.hibernate.search.indexes.serialization.impl.CopyTokenStream.fillCache(CopyTokenStream.java:91) at org.hibernate.search.indexes.serialization.impl.CopyTokenStream.buildSerializabletokenStream(CopyTokenStream.java:39) at org.hibernate.search.indexes.serialization.spi.LuceneFieldContext.getTokenStream(LuceneFieldContext.java:105) at org.hibernate.search.indexes.serialization.avro.impl.AvroSerializer.addFieldWithTokenStreamData(AvroSerializer.java:269) at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.buildDocument(LuceneWorkSerializerImpl.java:193) at org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.toSerializedModel(LuceneWorkSerializerImpl.java:90) ... 5 more Aug 18, 2014 3:21:09 PM org.hibernate.search.indexes.impl.DirectoryBasedIndexManager getSerializer INFO: HSEARCH000168: Serialization service Avro SerializationProvider v1.1 being used for index 'org.hibernate.search.test.serialization.RemoteEntity'

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.0.0.Alpha6

Priority

Major