Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5531

IndexUpgradeTool crashes for tables without any indexes + Sleep problems

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.15.0, 4.14.3
    • 4.15.0, 5.1.0, 4.14.3
    • None
    • None

    Description

      INFO: No indexes to rebuild for table <TableWithoutIndexes>
      Exception in thread "main" java.lang.NullPointerException
          at org.apache.phoenix.mapreduce.index.IndexUpgradeTool.rebuildIndexes(IndexUpgradeTool.java:480)
          at org.apache.phoenix.mapreduce.index.IndexUpgradeTool.rebuildIndexes(IndexUpgradeTool.java:419)
          at org.apache.phoenix.mapreduce.index.IndexUpgradeTool.executeTool(IndexUpgradeTool.java:346)
          at org.apache.phoenix.mapreduce.index.IndexUpgradeTool.executeTool(IndexUpgradeTool.java:312)
          at org.apache.phoenix.mapreduce.index.IndexUpgradeTool.run(IndexUpgradeTool.java:175)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
          at org.apache.phoenix.mapreduce.index.IndexUpgradeTool.main(IndexUpgradeTool.java:673)

       

      Also, the tool sleeps for expiry of cached table info's on clients can even when run in dry-mode. Besides, the sleep seems to be at the wrong point - before any changes to table/index metadata. The sleep needs to be after the metadata changes are done.

      Attachments

        Activity

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

          People

            swaroopa Swaroopa Kadam
            priyankporwal Priyank Porwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3.5h
                3.5h

                Issue deployment