我有一个使用elasticsearch收集错误数据并通知相关堆栈持有者的node.js应用程序。它最近开始给我带来错误(代码没有做任何修改):
write EIO
Error: write EIO
at afterWriteDispatched (internal/stream_base_commons.js:154:25)
at writeGeneric (internal/stream_base_commons.js:145:3)
at WriteStream.Socket._writeGeneric (net.js:783:11)
at WriteStream.Socket._write (net.js:795:8)
at doWrite (_stream_writable.js:385:12)
at writeOrBuffer (_stream_writable.js:367:5)
at WriteStream.Writable.write (_stream_writable.js:307:12)
at Stdio.write (/project/node_modules/elasticsearch/src/lib/loggers/stdio.js:58:6)
at Stdio.onError (/project/node_modules/elasticsearch/src/lib/loggers/stdio.js:70:8)
at Log.wrapper (/project/node_modules/lodash/lodash.js:4929:19)
at Log.emit (events.js:315:20)
at Log.error (/project/node_modules/elasticsearch/src/lib/log.js:239:17)
at checkRespForFailure (/project/node_modules/elasticsearch/src/lib/transport.js:298:18)
at HttpConnector.<anonymous> (/project/node_modules/elasticsearch/src/lib/connectors/http.js:171:7)
at ClientRequest.wrapper (/project/node_modules/lodash/lodash.js:4929:19)
at ClientRequest.emit (events.js:315:20)
我怀疑这与磁盘上某种类型的I/O错误有关。我能做些什么来消除错误?我正在使用Node.js v14.0.0和elasticsearch (npm ) 16.7.1。
发布于 2020-05-28 02:49:36
这是ElasticSearch的日志特性中的一个bug,因为它是同步写入stdio的。我们要么关闭日志,要么使用第三方记录器。
https://stackoverflow.com/questions/61998022
复制相似问题