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

Skip SYSTEM TABLE checks while creating phoenix connection if client has set the DoNotUpgrade config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0.0, 4.15.0, 4.14.3
    • 5.1.0, 4.16.0
    • None
    • None
    • 4,579

    Description

      Phoenix checks upgrade path even if client has set "DoNotUpgrade" config. When HMaster failover happens and Phoenix client creating phoenix connection, we get exception "org.apache.hadoop.hbase.PleaseHoldException: Master is initializing" because phoenix calls HBase admin apis to check if SYSTEM tables are in place and does not require an upgrade.  CQSI.init() initiates creating systems table and CQSI.ensureTableCreated is checking if SYTEM table requires upgrade and calls hbaseAdminApis to perform this operation which fails if HMaster is not running. Can we honor the "DoNotUpgrade" config by client(By making an assumption that SYSTEM table is already up-to-date and phoenix client shouldn't perform any upgrades) and skip this upgrade checks ?

      EnsureTableCreated performs bunch of client-server compatibility checks like:

      1.SYSTEM.CATALOG exists and its timestamp < MIN_SYSTEM_TABLE_TIMESTAMP
      2.SYSTEM.CATALOG exists, but client and server-side namespace mapping is enabled so we need to migrate SYSTEM tables to the SYSTEM namespace

      3.When an end-user uses the vanilla PhoenixDriver to create a connection and a requirement for upgrade is detected. In this case, the user should get a connection on which they are only able to run "EXECUTE UPGRADE".

      Attachments

        1. PHOENIX-5920.4.x.patch
          12 kB
          Neha Gupta
        2. PHOENIX-5920.master.patch
          12 kB
          Neha Gupta
        3. PHOENIX-5920.patch
          26 kB
          Neha Gupta
        4. PHOENIX-5920.v1.patch
          15 kB
          Neha Gupta
        5. PHOENIX-5920.v2.patch
          18 kB
          Neha Gupta
        6. PHOENIX-5920.v3.patch
          19 kB
          Neha Gupta
        7. PHOENIX-5920.v4.patch
          19 kB
          Neha Gupta
        8. PHOENIX-5920.v5.patch
          12 kB
          Neha Gupta

        Issue Links

          Activity

            People

              neha.gupta Neha Gupta
              neha.gupta Neha Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 2h
                  2h