Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12468

Add the ability to update EventProcessorStatus

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • be, Catalog, fe
    • None

    Description

      Once the impala and hive's status is missmatched , and the EventProcessorStatus become NEED_INVALIDATEļ¼Œ we usually use invalidate metadata to reset the catalog instance. And then impala will update the status to ACTIVE .

      But if impala contains many tables , the cost of invalidate is a bit high for a global invalidate. So we may invalidate metadata for tables one by one for these incremental changed table. For example , we have 1000,000,000,000 tables but only some of the table event process occurs CatalogException and MetastoreNotificationNeedsInvalidateException was thrown. I think there is no need to invalidate all table caches in order to reset the catalog instance see here .

      MetaStoresProcessor 's async update process will not update the currentStatus when the status is not ACTIVE, see here

      So what about add a new SQL grammar : SET EVENT STATUS ${status} ?

      Attachments

        Issue Links

          Activity

            People

              maxwellguo Maxwell Guo
              maxwellguo Maxwell Guo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: