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

Optimize tableExists() call while retrieving correct MUTEX table

    XMLWordPrintableJSON

Details

    Description

      Inside CQSI.writeMutexCell(), we call getSysMutexPhysicalTableNameBytes() which in turn calls HBase Admin APIs to check the existence of SYSTEM.MUTEX/SYSTEM:MUTEX here.

      Later, we anyways try to get the HTable both inside writeMutexCell() and deleteMutexCell(). Instead, we can lazily fail this getTable() call (by catching the HBase TableNotFoundException) to avoid additional HBase Admin API calls.

      Attachments

        1. PHOENIX-6129.4.x.000.patch
          10 kB
          Viraj Jasani

        Issue Links

          Activity

            People

              vjasani Viraj Jasani
              ckulkarni Chinmay Kulkarni
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: