public boolean markAndGetAuthStatus(boolean isForce) {
        boolean needAuth = false;
        if (isForce) {
            nextWithAuthInfo2M.set(false);
        } else if (nextWithAuthInfo2M.get()) {
            if (nextWithAuthInfo2M.compareAndSet(true, false)) {
                needAuth = true;
            }
        }
        return needAuth;
    }
Book and get Master's authentication status

@param isForce    whether force authentication
@return           whether to require authentication
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/consumer/RmtDataCache.java