Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5223

IndexUpgrader (4.4.0) fails when -verbose is not set, or when any value of -dir-impl is specified

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.4
    • 4.5, 6.0
    • core/index
    • None
    • Linux

    • New

    Description

      Here it fails because -verbose is not set:

      $ java -cp ./lucene-core-4.4-SNAPSHOT.jar org.apache.lucene.index.IndexUpgrader ./INDEX
      Exception in thread "main" java.lang.IllegalArgumentException: printStream must not be null
      at org.apache.lucene.index.IndexWriterConfig.setInfoStream(IndexWriterConfig.java:514)
      at org.apache.lucene.index.IndexUpgrader.<init>(IndexUpgrader.java:126)
      at org.apache.lucene.index.IndexUpgrader.main(IndexUpgrader.java:109)

      Here it works with -verbose set:

      $ java -cp ./lucene-core-4.4-SNAPSHOT.jar org.apache.lucene.index.IndexUpgrader -verbose ./INDEX
      IFD 0 [Mon Sep 16 18:25:53 PDT 2013; main]: init: current segments file is "segments_5"; deletionPolicy=org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy@42698403

      ...

      IW 0 [Mon Sep 16 18:25:53 PDT 2013; main]: at close: _2(4.4):C4

      Attachments

        1. LUCENE-5223.patch
          7 kB
          Chris M. Hostetter
        2. LUCENE-5223.patch
          6 kB
          Chris M. Hostetter

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter
            brucekarsh Bruce Karsh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment