Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26525

Use unique thread name for group WALs

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The consumer threads for each WAL group has the same name, since they only use the WAL root dir in the thread name.

      new ThreadFactoryBuilder().setNameFormat("AsyncFSWAL-%d-" + rootDir.toString()).
        setDaemon(true).build()); 

      For example, for BoundedGroupingStrategy, the consumer threads names are as follows,

      We can use the log prefix instead, the consumer threads names will be changed to

      So we can clearly see what happens from the log and the jstack info if something wrong with the WAL.

       

      Attachments

        1. image-2021-12-01-16-20-18-912.png
          198 kB
          Xiaolin Ha
        2. image-2021-12-01-16-21-18-032.png
          308 kB
          Xiaolin Ha
        3. image-2021-12-02-17-38-21-959.png
          343 kB
          Xiaolin Ha

        Activity

          People

            Xiaolin Ha Xiaolin Ha
            Xiaolin Ha Xiaolin Ha
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: