line / line/centraldogma

Some server log messages are not logged to Logback

Open
#428 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

defect
Dominant language
Java
Stars
668
Forks
135
Avg merge
4d 19h
Merged PRs (30d)
7

Description

I found this from the stderr output:

```
Aug 06, 2019 3:18:22 PM com.github.benmanes.caffeine.cache.LocalAsyncCache lambda$handleCompletion$3
WARNING: Exception thrown during asynchronous load
java.util.concurrent.CompletionException: com.linecorp.centraldogma.server.internal.storage.RequestAlreadyTimedOutException: Request already timed out.
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
at io.micrometer.core.instrument.AbstractTimer.record(AbstractTimer.java:160)
at io.micrometer.core.instrument.Timer.lambda$wrap$0(Timer.java:144)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.linecorp.centraldogma.server.internal.storage.RequestAlreadyTimedOutException: Request already timed out.
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the stderr output from com.github.benmanes.caffeine.cache.LocalAsyncCache and the asynchronous load that reports RequestAlreadyTimedOutException. Identify the server logging entry points involved and verify that the affected messages are routed through Logback rather than only appearing on stderr.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.