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

IndexUpgradeTool crashes for tables without any indexes + Sleep problems

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.15.0, 4.14.3
    • Fix Version/s: 4.15.0, 4.14.3, 5.1.1
    • Component/s: None
    • Labels:
      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

        1. PHOENIX-5531.4.14-HBase-1.3.patch
          13 kB
          Swaroopa Kadam
        2. PHOENIX-5531.4.x-HBase-1.3.patch
          15 kB
          Swaroopa Kadam
        3. PHOENIX-5531.patch
          14 kB
          Swaroopa Kadam

          Activity

            People

            • Assignee:
              swaroopa Swaroopa Kadam
              Reporter:
              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