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

IndexTool does not rebuild all the rows

    XMLWordPrintableJSON

Details

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

    Description

      IndexTool builds a subset of the rows of an index table. The rows that are created after the time specified by the timestamp of the PTable (i.e., table metadata structure maintained in memory) for the index table are not rebuilt. This timestamp is updated by the PTable builder, that is,  at the time of creating the PTable structure int memory. Based on the comment on the code (see IndexTool.getJob()), this is done to "ensure index tables remains consistent post population".  Such consistency issue may exist for client side index build but PHOENIX-5018 (server side index build) does not have such an issue. However, PHOENIX-5018 did not change this behavior. In order to upgrade an index table to PHOENIX-5156 (new index design), we need to rebuild all the rows that are created before the table is upgraded (not before the timestamp of the index table). Also, we may want to use the IndexTool rebuild an index table online. In that case, we may want include as many rows as possible. This issue is to make sure that IndexTool builds all the rows that exist at the time the tool starts running. 

      Attachments

        1. PHOENIX-5503.master.001.patch
          3 kB
          Kadir Ozdemir
        2. PHOENIX-5503.master.002.patch
          4 kB
          Kadir OZDEMIR

        Issue Links

          Activity

            People

              kozdemir Kadir OZDEMIR
              kadir Kadir Ozdemir
              Votes:
              0 Vote for this issue
              Watchers:
              2 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
                  1h