解决线程池过度关闭问题

This commit is contained in:
ZLI263
2025-09-24 10:33:24 +08:00
parent 15f31a94da
commit 5ffd0e5f8f

View File

@@ -115,21 +115,17 @@ public class CorpusProcessKafkaProducer {
}
} catch (Exception e) {
log.error("CorpusProcessKafkaProducer 电话语料 解析JSON出错: {}", e.getMessage());
}finally {
executor.shutdown();
}
});
}
executor.shutdown();
}
log.info("Kafka 消息处理完成,耗时:{}", System.currentTimeMillis() - startTime);
// 在这里可以添加对解析后的对象的进一步处理逻辑
} catch (Exception e) {
log.error("CorpusProcessKafkaProducer 电话语料 解析JSON出错: {}" , e.getMessage());
}finally {
executor.shutdown();
}
}