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

Add debug page for in-flight DDLs in catalogd

    XMLWordPrintableJSON

Details

    Description

      In a busy cluster, it's possible that many DDL/DML queries keep in the CREATED state for several minutes. Especially when using with sync_ddl=true, tens of minutes are also possible. They may be waiting for the ExecDdl RPC to catalogd to finish.

      It'd be helpful for debugging DDL/DML hangs if we can show the in-flight DDLs in catalogd. I think the following fields are important:

      • thread id
      • coordinator
      • db name / table name
      • ddl type, e.g. AddPartition, DropTable, CreateTable, etc. More types here.
      • last event, e.g. waiting for table lock, got table lock, loading file metadata, waiting for sync ddl version etc.
      • start time
      • time elapsed
      • (optional) params link to show the TDdlExecRequest in json format

      It'd be better to also include running REFRESH/INVALIDATE METADATA commands 

      Attachments

        1. Selection_082.png
          200 kB
          Quanlong Huang

        Issue Links

          Activity

            People

              stigahuang Quanlong Huang
              stigahuang Quanlong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: