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

Index becomes Active during Partial Index Rebuilder if Index Failure happens

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Resolved
    • 4.14.1
    • 4.15.0, 5.1.0, 4.14.2
    • None
    • None

    Description

      After PHOENIX-4130 and PHOENIX-4600 , If there is Index failure during Partial Index Rebuild, Rebuilder will try again to write Index updates. If it succeeds then it will transition Index from INACTIVE to ACTIVE, even before Rebuilder finishes.

      Here is where it goes wrong, I think :- 

      PhoenixIndexFailurePolicy.java :- 
      public static void doBatchWithRetries(MutateCommand mutateCommand,
                  IndexWriteException iwe, PhoenixConnection connection, ReadOnlyProps config) throws IOException {
      ....
          while (canRetryMore(numRetry++, maxTries, canRetryUntil)) {
          ...
              handleIndexWriteSuccessFromClient(iwe, connection);
          ...
          }
      }
      ....
      private static void handleIndexWriteSuccessFromClient(IndexWriteException indexWriteException, PhoenixConnection conn) {
              handleExceptionFromClient(indexWriteException, conn, PIndexState.ACTIVE);
      }
      
      

       

       

       

      Attachments

        1. PHOENIX-5080-4.x-HBase-1.3.01.patch
          19 kB
          Mihir Monani
        2. PHOENIX-5080-4.x-HBase-1.3.02.patch
          27 kB
          Mihir Monani
        3. PHOENIX-5080-4.x-HBase-1.3.02.patch
          27 kB
          Mihir Monani
        4. PHOENIX-5080-4.x-HBase-1.3.03.patch
          25 kB
          Mihir Monani
        5. PHOENIX-5080-4.x-HBase-1.3.04.patch
          26 kB
          Mihir Monani
        6. PHOENIX-5080-4.x-HBase-1.3.05.patch
          27 kB
          Mihir Monani
        7. PHOENIX-5080.01.patch
          27 kB
          Mihir Monani
        8. PHOENIX-5080.01.patch
          27 kB
          Mihir Monani
        9. PHOENIX-5080-4.x-HBase-1.3.06.patch
          27 kB
          Mihir Monani
        10. PHOENIX-5080-4.x-HBase-1.3.06.patch
          26 kB
          Mihir Monani

        Issue Links

          Activity

            People

              mihir6692 Mihir Monani
              mihir6692 Mihir Monani
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: