You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2021/07/28 11:50:48 UTC

[GitHub] [incubator-inlong] dockerzhang opened a new issue #1042: [INLONG-453] TubemqSourceFunction class prints too many logs problem

dockerzhang opened a new issue #1042:
URL: https://github.com/apache/incubator-inlong/issues/1042


   <p>module:</p>
   
   <p>tubemq-connector-flink</p>
   
   <p>class:</p>
   
   <p>TubemqSourceFunction</p>
   
   <p> </p>
   
   <p>```</p>
   
   <p>Instant lastConsumeInstant = Instant.now();</p>
   
   <p> while (running) {</p>
   
   <p> ConsumerResult consumeResult = messagePullConsumer.getMessage();<br/>
    if (!consumeResult.isSuccess()) {</p>
   
   <p>...<br/>
    Duration idleTime =<br/>
    Duration.between(lastConsumeInstant, Instant.now());<br/>
    if (idleTime.compareTo(maxIdleTime) > 0) </p>
   {
   LOG.info("Mark this source as temporarily idle.");
    ctx.markAsTemporarilyIdle();
    }
   
   <p> continue;<br/>
    }</p>
   
   <p>...</p>
   
   <p>}</p>
   
   <p>possible problems:</p>
   
   <p>print too much log content: Mark this source as temporarily idle.</p>
   
   <p>possible solution:</p>
   
   <p>remove the log and print this line of code</p>
   <i>JIRA link - <a href="https://issues.apache.org/jira/browse/INLONG-453">[INLONG-453]</a> created by leno</i>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] dockerzhang closed issue #1042: [INLONG-453] TubemqSourceFunction class prints too many logs problem

Posted by GitBox <gi...@apache.org>.
dockerzhang closed issue #1042:
URL: https://github.com/apache/incubator-inlong/issues/1042


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org