public static void threadDumpingIsAlive(final Thread t) throws InterruptedException {
        if (t == null) {
            return;
        }

        while (t.isAlive()) {
            t.join(60 * 1000);
            if (t.isAlive()) {
                logger.info("Automatic Stack Trace every 60 seconds waiting on " + t.getName());
            }
        }
    }
Check and wait the specified thread exit

@param t Waits on the passed thread to die dumping a threaddump every minute while its up.
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/utils/ThreadUtils.java