metafacture-core icon indicating copy to clipboard operation
metafacture-core copied to clipboard

Exception occurs when more threads are used than documents exists

Open dr0i opened this issue 3 years ago • 0 comments

Reported at https://github.com/hbz/lobid-resources/issues/1030#issue-502574421:

When more threads are used than documents exists a NullPointerException occurs.

When calling closeStream(), a NullPointerException appears. This stops the ETL process finishing correctly and results in loss of processed documents. A workaround is to catch the Exception. However, as this is a problem can occur everywhere, it would be nicer to somehow control this probably at the ObjectPipeDecoupler. Also, to say the least, it's rather unexpected to use more threads than documents, it may happen.

dr0i avatar Sep 16 '22 08:09 dr0i