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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]