Tencent / TubeMQ

TubeMQ has been donated to the Apache Software Foundation and renamed to InLong, please visit the new Apache repository: https://github.com/apache/incubator-inlong

Home Page:https://inlong.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shielding abnormal broker should not be limited to IOException, any exception in the writing process should be managed.

Libeibei1990 opened this issue · comments

Shielding abnormal broker should not be limited to IOException, any exception in the writing process should be managed.
For example, modify writing path permission which will affect data writing directly.

https://github.com/Tencent/TubeMQ/blob/master/tubemq-server/src/main/java/com/tencent/tubemq/server/broker/msgstore/disk/MsgFileStore.java

catch (final IOException e) {
ServiceStatusHolder.addWriteIOErrCnt();
logger.error("[File Store] Append message in file failed ", e);
throw e;
}

Thanks, I'll check it and fix it.