Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-453

TubemqSourceFunction class prints too many logs problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              leno xianle cao
              leno xianle cao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m