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