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 start by exploring the repository structure to understand the codebase.
Assistant
Let me explore the package directory and look for logging-related files.
Assistant
Now let me search for log-related files, especially anything to do with gRPC logging.
Assistant
Now let me check the AnsiLogFormatter too:
Assistant
Now I can see the issue. Both formatters use
String.formatted(additionalArgs)which uses%style format, but gRPC usesjava.util.loggingwhich usesMessageFormatstyle{0},{1}placeholders. Let me look at the existing test:Assistant
Let me look at the DefaultLogger:
Assistant
Let me also check what is happening with gRPC's logging:
Assistant
Let me first check the structure and look at how the gRPC logging works:
Assistant
Let me write a test script to reproduce the issue:
Assistant
Let me also check what happens with
%style placeholders inMessageFormat:Assistant
Now let me check the existing test for log formatting:
Assistant
Let me now create a test script that reproduces the issue:
Assistant
Let me build the engine module first so we have the compiled classes:
Assistant
I've confirmed the issue. Now let me look at the existing code more carefully to plan the fix:
Assistant
Now let me make the fix. The core change is to use
MessageFormat.format()instead ofString.formatted()for the JULLogRecord.parameterssubstitution, since gRPC (and other JUL loggers) use theMessageFormat-style{0},{1}placeholders.Let me first add a helper method to
LogFormatterand update both formatters:Assistant
Let me use the
replacecommand:Assistant
The
opencommand requires a specific syntax. Let me try with the proper format.Assistant
Let me try a different approach to the tool call.
Assistant
Now I'll write the new
LogFormatter.java. I'll create a helper method that handles JULLogRecordparameter substitution usingMessageFormat.format():Assistant
Now let me also update
AnsiLogFormatter.java:Assistant
Now let me verify the changes by recompiling and running the test:
Assistant
The fix works. Now let me write a more comprehensive test to verify edge cases:
Assistant
All edge cases work correctly. Now let me also verify the existing internal logging flow still works:
Assistant
Let me run the existing tests to make sure I didn't break anything:
Assistant
All existing tests pass. Let me verify the final changes:
Assistant
Let me check that the imports in the new files are correct:
Assistant
Good.
MessageFormatis injava.text.*which is already imported. Let me also check the AnsiLogFormatter:Assistant
Let me also run a broader test to make sure I didn't break anything else:
Assistant
Let me also check for any other related files in the codebase:
Assistant
Let me re-run my reproduction test to confirm the fix works:
Assistant
Let me also clean up the temporary test files and run the full test suite for the engine module:
Assistant
Let me also check for any other tests that might be affected:
Assistant
Let me view the final state of the changed files:
Assistant
Let me also do a final check of the changes:
Assistant
Let me also run a final verification with a complete test script:
Assistant
The fix is verified to work correctly. Let me also do a final summary of the changes and make sure everything is in order:
Assistant
Let me run a broader test to make sure I haven't broken anything else:
Assistant
Let me also check if there are tests in other modules that may exercise the formatters:
Assistant
Let me also check the logback configuration to see if there's any other logging config:
Assistant
Let me also write a final end-to-end test that uses the actual JUL Logger to make sure the fix works through the full pipeline:
Assistant
The end-to-end test confirms the fix works. Let me now do a final summary check:
Assistant
Let me also verify the fix once more by running the full LoggerTest:
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.