ISSUE DESCRIPTION gRPC ManagedChannelImpl log messages contain unsubstituted…
- User
ISSUE DESCRIPTION
gRPC ManagedChannelImpl log messages contain unsubstituted placeholders Affected version: ArcadeDB server 26.4.2 Component: logging — bridge between gRPC's java.util.logging and the server's SLF4J/Logback backend
Summary
Some WARNING messages emitted by gRPC's ManagedChannelImpl are written to the ArcadeDB server log with the original MessageFormat placeholders ({0}, {1}) left literal instead of being substituted with the actual values.
Example
2026-05-21 06:53:11.234 WARNI [ManagedChannelImpl] [{0}] Failed to resolve name. status={1} 2026-05-21 06:53:11.234 WARNI [ManagedChannelImpl] [{0}] Failed to resolve name. status={1}
Expected (illustrative):
WARNI [ManagedChannelImpl] [channel-7] Failed to resolve name. status=UNAVAILABLE: Unable to resolve host vcc-superx-arcadedb-2.…
Root cause (suspected)
gRPC's internal loggers use java.util.logging with MessageFormat-style placeholders. The bridge that forwards JUL records to the ArcadeDB logging backend (SLF4J/Logback) is not translating {0}, {1} parameters into the SLF4J {} style, so the parameter array is dropped and the raw template ends up in the log file. Confirmation: the same logical event is also logged elsewhere (via GrpcLogAppender / AppendLogResponseHandler) with the full formatted message, so the data exists — it's just lost on the ManagedChannelImpl path.
Impact
Low severity but operationally annoying — these log lines carry zero information, so anyone scanning logs for the actual channel and gRPC status gets a stream of [{0}] Failed to resolve name. status={1} that they then have to correlate with neighbouring lines.
Suggested fix
Either:
- Install SLF4JBridgeHandler (org.slf4j:jul-to-slf4j) and ensure it translates JUL LogRecord.parameters via MessageFormat.format(...) before delegating to SLF4J; or
- Configure a JUL Handler for the io.grpc logger that uses a SimpleFormatter-compatible formatter so parameters are substituted before the message reaches the SLF4J side.
Environment
- ArcadeDB 26.4.2, default packaging
- Logs viewed via kubectl logs; same behaviour observed across all 3 HA pods
Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository using command. Additionally, you can use and to temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you call ) using or commands. However you don't need to use or before submitting your changes. In fact, only submits currently unstaged changes because it uses to get the changes that need to be submitted. Assistant
Let me explore the repository structure to understand the codebase and find the relevant logging bridge code.
Assistant
Let me explore the repository structure first.
Assistant
Let me look for the JUL-to-SLF4J bridge or any custom logging handler that forwards JUL records to SLF4J.
Assistant
Those are likely about date formatting, not JUL. Let me search for the bridge that forwards JUL to SLF4J. Let me look at the ArcadeDBServer and the logback configuration.
Assistant
ArcadeDB has its own
LogManager. Let me look at the com.arcadedb.log.LogManager and how it bridges to SLF4J/Logback.Assistant
The ArcadeDB logging is JUL-based and uses
LogFormatter. The gRPCManagedChannelImplpublishes JULLogRecords with MessageFormat-style placeholders ({0},{1}), butLogFormatter.customFormatMessageusesString.format-style (message.formatted(...)) which doesn't substitute{0}{1}. Let me check the AnsiLogFormatter too, which might be the actual formatter used.Assistant
Now I understand the root cause. The
AnsiLogFormatter.customFormatMessage(the actual formatter used) callsmessage.formatted(additionalArgs)which usesString.format(printf-style%s). But gRPC uses MessageFormat-style placeholders ({0},{1}), whichString.formatdoesn't substitute. The standard JDKFormatter.formatMessagehandles both styles by checking for{<digit>first.Let me look at the full LogFormatter file to plan the edit.
Assistant
I'll add a helper method that mirrors the JDK
Formatter.formatMessagelogic — handling both MessageFormat ({0}) and printf (%s) styles — toLogFormatter, and use it in bothLogFormatterandAnsiLogFormatter. Let me editLogFormatterfirst.Assistant
No python3 available. Let me use the
replacecommand instead. First, let me open the file.Assistant
Now let me replace the FORMAT THE MESSAGE block with the helper call and add the helper method.
Assistant
Now let me use the
replacespecial command to update the block in the openLogFormatter.javafile.Assistant
LogFormatteris updated. Now let me updateAnsiLogFormatter.customFormatMessageto use the same helper.Assistant
Both formatters now use the helper. Let me verify the build compiles. First, let me check the test for the logger and the build setup.
Assistant
Let me reproduce the bug. First, let me build the engine module to get the compiled classes.
Assistant
The engine module compiled successfully. Now let me write a standalone reproduction test using the compiled classes.
Assistant
The fix works. The gRPC MessageFormat-style message is now correctly substituted to
[channel-7] Failed to resolve name. status=UNAVAILABLE: Unable to resolve host..., while printf-style and no-param messages still work correctly.Let me confirm the previous (buggy) behavior by reverting temporarily to demonstrate the bug was reproduced, then restore.
Assistant
Confirmed the bug: the old code produced
[{0}] Failed to resolve name. status={1}(literal placeholders), and the fix substitutes them correctly. Now let me run the existingLoggerTestto make sure I didn't break anything.Assistant
The surefire provider isn't cached. Let me try without offline mode (allow network access).
Assistant
The test ran but no output shown for results. Let me check if it passed.
Assistant
All 4 LoggerTest tests pass. Let me check if there are other places in the codebase with the same pattern that might also need fixing (e.g., a separate gRPC bridge handler).
Assistant
The relevant formatter classes are
LogFormatterandAnsiLogFormatter, both now fixed. TheDefaultLoggerpre-formats ArcadeDB's own printf-style messages before passing to JUL (no parameters left on the LogRecord), so those don't need changes. The gRPC path bypassesDefaultLoggerentirely and goes straight to the JUL handler's formatter — which is exactly what we fixed, and matches the issue'sWARNI [ManagedChannelImpl] ...output format.Let me view the final diff to confirm the changes are clean.
Assistant
The diff is clean and the engine compiles. Let me clean up the temporary files I created.
Assistant
All changes are clean and limited to the two formatter files. Let me do a final review of the complete updated
LogFormatter.javato make sure everything is coherent.Assistant
The changes are complete and coherent. Let me provide my final reasoning and submit.
Summary
Root cause: gRPC's (and other internal gRPC loggers) emit s whose message templates use -style placeholders (, ) and carry the actual values in the record's parameter array. These records reach ArcadeDB's logging backend through the JUL s configured in , which use (console) and (file). Both formatters' only ever called — i.e. (printf style). does not recognise / (it doesn't throw, it just leaves them literal), so the parameters were silently dropped and the raw template ended up in the log: .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.