You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
code:
```
ConsumerResult consumeResult = messagePullConsumer.getMessage();
if (!consumeResult.isSuccess()) {
LOG.info("Could not consume messages from tubemq (errcode: {}, " +
"errmsg: {}).", consumeResult.getErrCode(),
consumeResult.getErrMsg());
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.
code:
```
ConsumerResult consumeResult = messagePullConsumer.getMessage();
if (!consumeResult.isSuccess()) {
LOG.info("Could not consume messages from tubemq (errcode: {}, " +
"errmsg: {}).", consumeResult.getErrCode(),
consumeResult.getErrMsg());
...
}
possible improvements:
ConsumerResult consumeResult = messagePullConsumer.getMessage();
if (!consumeResult.isSuccess()) {
if (!(consumeResult.getErrCode() == 400 || consumeResult.getErrCode() == 404 ||
consumeResult.getErrCode() == 405 || consumeResult.getErrCode() == 406 ||
consumeResult.getErrCode() == 407 || consumeResult.getErrCode() == 408)) {
LOG.info("Could not consume messages from tubemq (errcode: {}, " + "errmsg: {}).",
consumeResult.getErrCode(), consumeResult.getErrMsg());
}
...
}
```
JIRA link - [INLONG-443] created by lenoThe text was updated successfully, but these errors were encountered: