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

Expose LOCK_RETRIES/LOCK_RETRY_WAIT_SECONDS settings for user

    XMLWordPrintableJSON

Details

    • ghx-label-13

    Description

      Impala using private static final value for lock retry/wait.

      https://github.com/apache/impala/blob/873fe2e5241c5714dfd94a186d524edc1cbad0ad/fe/src/compat-hive-3/java/org/apache/impala/compat/MetastoreShim.java#L142

      // Number of retries to acquire an HMS ACID lock.
      private static final int LOCK_RETRIES = 10;
      
      // Time interval between retries of acquiring an HMS ACID lock
      private static final int LOCK_RETRY_WAIT_SECONDS = 3;
      

      In some cases it would make sense to make these values tunable.

      We invoke acquireLock() in these places:
      https://github.infra.cloudera.com/CDH/Impala/blob/3ceabc01822f53bb6f174dc29aac56ac3993d389/fe/src/main/java/org/apache/impala/service/Frontend.java#L2169

      https://github.infra.cloudera.com/CDH/Impala/blob/7ae6fff71c860f7623fc0bfd3092073128c4959c/fe/src/main/java/org/apache/impala/catalog/Catalog.java#L745
      invoked by
      https://github.infra.cloudera.com/CDH/Impala/blob/ac62b98ab1d3475d8ece865c67fe90d463c340b5/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java#L1936

      In Frontend.java it's easy to access the query options. To have the tunables at the CatalogD -side we probably need to extend TDropTableOrViewParams or TDdlExecRequest.

      Attachments

        Issue Links

          Activity

            People

              boroknagyz Zoltán Borók-Nagy
              boroknagyz Zoltán Borók-Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: