You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "Guocheng Zhang (Jira)" <ji...@apache.org> on 2020/12/15 08:58:00 UTC
[jira] [Commented] (TUBEMQ-454) TubemqSourceFunction class prints
too many logs problem
[ https://issues.apache.org/jira/browse/TUBEMQ-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17249565#comment-17249565 ]
Guocheng Zhang commented on TUBEMQ-454:
---------------------------------------
Hi [~leno], can you give us a pr?
> TubemqSourceFunction class prints too many logs problem
> -------------------------------------------------------
>
> Key: TUBEMQ-454
> URL: https://issues.apache.org/jira/browse/TUBEMQ-454
> Project: Apache TubeMQ
> Issue Type: Bug
> Reporter: xianle cao
> Priority: Major
>
> module:
> tubemq-connector-flink
> class:
> TubemqSourceFunction
>
> ```
> Instant lastConsumeInstant = Instant.now();
> while (running) {
> ConsumerResult consumeResult = messagePullConsumer.getMessage();
> if (!consumeResult.isSuccess()) {
> ...
> Duration idleTime =
> Duration.between(lastConsumeInstant, Instant.now());
> if (idleTime.compareTo(maxIdleTime) > 0) {
> LOG.info("Mark this source as temporarily idle.");
> ctx.markAsTemporarilyIdle();
> }
> continue;
> }
> ...
> }
> possible problems:
> print too much log content: Mark this source as temporarily idle.
> possible solution:
> remove the log and print this line of code
--
This message was sent by Atlassian Jira
(v8.3.4#803005)