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

IndexTool returns error after rebuilding a DISABLED index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.14.3
    • 5.1.0, 4.15.1, 4.16.0
    • None
    • None

    Description

      IndexTool fails to set the indexstate to active in the reducer but the index becomes Active later anyways and is usable and built.

       

      Error: java.lang.RuntimeException: ERROR 1028 (42Y87): Invalid index state transition.  currentState=DISABLE. requestedState=ACTIVE tableName=IDX_TEST_1_2

      at org.apache.phoenix.mapreduce.index.PhoenixIndexImportDirectReducer.reduce(PhoenixIndexImportDirectReducer.java:57)

      at org.apache.phoenix.mapreduce.index.PhoenixIndexImportDirectReducer.reduce(PhoenixIndexImportDirectReducer.java:35)

      at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171)

      at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627)

      at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389)

      at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:170)

      at java.security.AccessController.doPrivileged(Native Method)

      at javax.security.auth.Subject.doAs(Subject.java:422)

      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1760)

      at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:164)

       

      Attachments

        1. PHOENIX-5512.4.x-HBase-1.4.001.patch
          9 kB
          Gokcen Iskender
        2. PHOENIX-5512.master.001.patch
          10 kB
          Gokcen Iskender

        Issue Links

          Activity

            People

              giskender Gokcen Iskender
              giskender Gokcen Iskender
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h 10m
                  1h 10m