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:49:27 UTC

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

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


   <p>When using the TubemqSourceFunction class to register the source table to consume tubemq topic data, this class prints too many info type logs, and the container log takes up a lot of disk space.</p>
   
   <p>code:</p>
   
   <p>```</p>
   
   <p>ConsumerResult consumeResult = messagePullConsumer.getMessage();<br/>
    if (!consumeResult.isSuccess()) {<br/>
   LOG.info("Could not consume messages from tubemq (errcode: {}, " +<br/>
   "errmsg: {}).", consumeResult.getErrCode(),<br/>
   consumeResult.getErrMsg());</p>
   
   <p>...</p>
   
   <p>}</p>
   
   <p>possible improvements:</p>
   
   <p>ConsumerResult consumeResult = messagePullConsumer.getMessage();<br/>
    if (!consumeResult.isSuccess()) {<br/>
    if (!(consumeResult.getErrCode() == 400 || consumeResult.getErrCode() == 404 ||<br/>
    consumeResult.getErrCode() == 405 || consumeResult.getErrCode() == 406 ||<br/>
    consumeResult.getErrCode() == 407 || consumeResult.getErrCode() == 408)) {<br/>
    LOG.info("Could not consume messages from tubemq (errcode: {}, " + "errmsg: {}).",<br/>
    consumeResult.getErrCode(), consumeResult.getErrMsg());<br/>
    }<br/>
   ...</p>
   
   <p>}</p>
   
   <p>```</p>
   <i>JIRA link - <a href="https://issues.apache.org/jira/browse/INLONG-443">[INLONG-443]</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 #1032: [INLONG-443] TubemqSourceFunction class prints too many logs problem

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


   


-- 
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