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
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 usinggit reset --hardcommand. 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
I’ll trace the logging initialization and dependencies first, then identify how JUL
LogRecordmessages are handed to the backend. I’ll reproduce the formatting behavior with the project’s existing code or a small temporary check, implement the narrowest bridge fix, run relevant tests/build checks, and review the diff before submission. - Assistant
The server uses JUL directly rather than an SLF4J JUL bridge. Both configured formatters (
LogFormatterfor files and itsAnsiLogFormattersubclass for console output) currently callString.formatted, which understands%sbut not JUL’sMessageFormatplaceholders. I’ll delegate parameter handling tojava.util.logging.Formatter.formatMessage(LogRecord), which preserves the project’s%slogging and correctly handles{0},{1}, resource bundles, and malformed templates according to JUL semantics. - Assistant
Compilation and the existing
LoggerTestpass. The first Maven invocation only failed because this environment does not defineHOME; rerunning withHOME=/tmpsucceeded. I’ll now directly exercise both formatters with JUL records containing gRPC-style{0}/{1}parameters and existing%sparameters, then inspect the final diff. - Assistant
The direct check exposed an important compatibility detail: JUL’s
Formatter.formatMessagehandlesMessageFormatsyntax but does not format the project’s%ssyntax. I’ll retain both behaviors by using JUL formatting first, then falling back to the existingString.formattedpath only when JUL left the message unchanged. This avoids regressing ArcadeDB’s own logging while fixing gRPC. - Assistant
The regression check now passes for both formatter implementations: gRPC-style records render
channel-7andUNAVAILABLE: hostwith no{0}/{1}, while%srecords still render their values.LoggerTest, compilation, andgit diff --checkall pass. The final change is limited to the shared JUL formatting logic and the console formatter override.Implemented the logging fix.Changes:
- Updated
LogFormatterto use JUL’sFormatter.formatMessage()for{0},{1}, etc. - Preserved ArcadeDB’s existing
%sformatting through a fallback. - Updated
AnsiLogFormatterto use the same shared formatting logic. - Both file and console logs now substitute gRPC
ManagedChannelImplparameters correctly.
Verification:
- Reproduced the original issue with
{0}/{1}placeholders. - Confirmed both formatters now produce substituted values.
- Updated
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.