apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: file-logger write without locks, messy serial logging in case of high concurrency

Open aapelismith opened this issue 1 year ago • 5 comments

Current Behavior

bug: Apisix file-logger 写入无锁,大并发情况下json日志混乱串行

Expected Behavior

No response

Error Logs

bug: Apisix file-logger 写入无锁,大并发情况下json日志混乱串行

Steps to Reproduce

bug: Apisix file-logger 写入无锁,大并发情况下json日志混乱串行

Environment

  • APISIX version (run apisix version): 3.2.2
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

aapelismith avatar Jun 03 '24 11:06 aapelismith

关注

slimValue avatar Jun 03 '24 12:06 slimValue

@jinjianming

aapelismith avatar Jun 09 '24 09:06 aapelismith

并发多大才会出现?

Justyell avatar Jul 12 '24 07:07 Justyell

是日志字段混淆了吗?

tianhao98 avatar Oct 18 '24 02:10 tianhao98

已采用kafka-logger代替,目前已不再关注此问题

aapelismith avatar Oct 18 '24 09:10 aapelismith