You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mykhailo Demianenko (JIRA)" <ji...@apache.org> on 2017/10/19 10:19:00 UTC

[jira] [Updated] (LUCENE-7999) Invalid segment file name

     [ https://issues.apache.org/jira/browse/LUCENE-7999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mykhailo Demianenko updated LUCENE-7999:
----------------------------------------
    Attachment: segmentName.patch

Please see suggested patch that change type of `counter` field that is used to generate new segment name to long instead of int to prevent overflow.

> Invalid segment file name
> -------------------------
>
>                 Key: LUCENE-7999
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7999
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 5.x, 6.x, 7.0
>            Reporter: Mykhailo Demianenko
>            Priority: Minor
>         Attachments: segmentName.patch
>
>
> After really long and intensive index usage its possible to overflow counter that used to generate new segment name that will not satisfy validation criteria:
> Caused by: java.lang.IllegalArgumentException: invalid codec filename '_-zik0zk_Lucene54_0.dvm', must match: _[a-z0-9]+(_.*)?\..*
>     at org.apache.lucene.index.SegmentInfo.checkFileNames(SegmentInfo.java:280)
>     at org.apache.lucene.index.SegmentInfo.addFiles(SegmentInfo.java:262)
>     at org.apache.lucene.index.SegmentInfo.setFiles(SegmentInfo.java:256)
>     at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4080)
>     at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3655)
>     at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:588)
>     at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:626)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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