Java log4j2: Log messages go missing sporadically, especially in multi-threaded scenarios
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, java
- Domain
- observability
Research direction
No source file or test is named. Clone the linked azure-app-insights reproduction and repeatedly run it with parameter 3, using the listed JDK and environments; inspect behavior around generalExportQueueCapacity and missing messages. Done means the sporadic loss is reproducible, explained, and addressed with verification that all messages reach App Insights.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 327
- Forks
- 222
- Avg merge
- 22h 34m
- Merged PRs (30d)
- 14
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/ApplicationInsights-Java
-
microsoft/ApplicationInsights-Java#4851 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoft/ApplicationInsights-Java#4817 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
microsoft/ApplicationInsights-Java#4770 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/ApplicationInsights-Java#4769 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/ApplicationInsights-Java#4729 · 121 comments ·
All issues in microsoft/ApplicationInsights-Java
Similar issues
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Openbug ecr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Needs: Triage Type: Feature request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2760 ·