[
https://issues.apache.org/jira/browse/INLONG-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated INLONG-453:
----------------------------------
Labels: pull-request-available (was: )
> TubemqSourceFunction class prints too many logs problem
> -------------------------------------------------------
>
> Key: INLONG-453
> URL: https://issues.apache.org/jira/browse/INLONG-453
> Project: Apache InLong
> Issue Type: Bug
> Reporter: xianle cao
> Assignee: xianle cao
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.8.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)