[ 
https://issues.apache.org/jira/browse/LUCENE-7476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15562489#comment-15562489
 ] 

Michael McCandless commented on LUCENE-7476:
--------------------------------------------

And your original patch indeed fixes the issue.

The problems is the {{incrementToken}} that {{JapaneseNumberFilter}} does lower 
down (in the while loop): in this case, today, the preceding tokenizer can 
return false while {{JapaneseNumberFilter}} returns true, causing a future call 
to {{incrementToken}} to illegally call {{incrementToken}} from the preceding 
tokenizer. 

> Fix transient failure in JapaneseNumberFilter run from TestFactories
> --------------------------------------------------------------------
>
>                 Key: LUCENE-7476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7476
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/other
>    Affects Versions: 6.2.1
>            Reporter: Andy Hind
>            Priority: Trivial
>         Attachments: LUCENE-7476.patch, LUCENE-7476.patch
>
>
> Repeatedly running TestFactories show this test to fail ~10% of the time.
> I believe the fix is trivial and related to loosing the state of the 
> underlying input stream when testing some analyzer life cycle flows. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to