Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Java log4j2: Log messages go missing sporadically, especially in multi-threaded scenarios

未关闭
#3,488 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
azure, java
领域
observability

调研方向

未指定源文件或测试。克隆链接的 azure-app-insights 重现,并使用列出的 JDK 和环境反复以参数 3 运行;检查 generalExportQueueCapacity 附近的行为以及缺失的消息。完成的标准是:能够重现并解释间歇性丢失问题,完成修复,并验证所有消息都能到达 App Insights。

由索引模型根据 Issue 内容生成。

描述

Expected behavior

All log messages should be sent to App Insights

Actual behavior

Log messages go missing sporadically in multi-threaded scenarios when several threads are logging simultaneously
Application Insights log file has no errors

To Reproduce

Clone https://github.com/hexagon-ecosys/azure-app-insights.git and run it several times by supplying the single parameter value '3' (which runs it in multi-threaded mode with long messages upto 20K characters in length)

System information
  • App Insights 3.4.18
  • MacOS 14.2 and Alpine 3.18 with Eclipse Temurin JDK 21
Additional Information
  • I cannot not see any pattern to this issue other than the fact that it happens more during weekdays (we're based in New York City) and less during the weekends
  • I am using the preview option generalExportQueueCapacity. Without it, I can see error messages in the Application Insights log file asking that it be set
主要语言
Java
星标
327
派生
222
平均合并
1 天 3 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/ApplicationInsights-Java 的其他 Issue

查看 microsoft/ApplicationInsights-Java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。