未验证 提交 92546c40 编写于 作者: H HTHou

fix sonar

上级 619172ff
......@@ -1130,7 +1130,7 @@ public class TsFileProcessor {
File newVmFile = createNewVMFile(tsFileResource, i + 1);
File mergedFile = FSFactoryProducer.getFSFactory()
.getFile(newVmFile.getPath() + MERGED_SUFFIX);
if (!tmpFile.renameTo(mergedFile)) {
if (tmpFile == null || !tmpFile.renameTo(mergedFile)) {
logger.error("Failed to rename {} to {}", newVmFile, mergedFile);
}
vmMergeLock.writeLock().lock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册