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 the logging infrastructure.
Assistant
Now let me look at the LogManager to understand the logging infrastructure.
Assistant
Now let me look at the log configuration file:
Assistant
Let me look at how SLF4J/Logback is used in this project:
Assistant
Let me look at the AnsiLogFormatter:
Assistant
Now let me look at how gRPC logs messages to understand the source of the issue:
Assistant
Let me look at the gRPC ManagedChannelImpl class to understand the issue:
Assistant
Let me look at how LogManager and the log system handles parameters, and write a test to reproduce the issue:
Assistant
Now let me write a script to reproduce the issue. First, let me check if there's a test for the LogFormatter:
Assistant
Let me create a simple test to verify the issue:
Assistant
I have reproduced the issue. Now let me investigate the fix:
Assistant
Now I understand the issue. Let me check the gRPC source to understand the messages they log:
Assistant
I see there's an issue with single-quotes in MessageFormat. Let me check gRPC's actual usage:
Assistant
Let me check the gRPC sources for actual log message format:
Assistant
Let me search for
SingleQuotedin gRPC source code. First, let me also check the existing handling of single-quotes:Assistant
Now I understand the issue. Let me look at all places where the format is used:
Assistant
Let me look at the AnsiCode class:
Assistant
Now let me look at the test resources to understand the test format:
Assistant
Now let me implement the fix. First, let me look at the exact lines I need to change:
Assistant
Now let me look at the AnsiLogFormatter:
Assistant
Now I have a clear understanding. Let me implement the fix. The approach is to replace
String.formatted()withMessageFormat.format()for handling LogRecord parameters, which is the standard way java.util.logging handles parameters:Assistant
Now let me apply the fix. I'll modify both files to use
MessageFormat.format()(the standard JUL way of formatting log messages with parameters):Assistant
Now let me build the engine and test:
Assistant
The basic case works. Let me test edge cases:
Assistant
Let me check the issue with test 10:
Assistant
Let me search for any other usage that could be affected:
Assistant
Let me also test the case with Throwable to make sure it works:
Assistant
Now let me run the existing tests to make sure I haven't broken anything:
Assistant
All 4 LoggerTest tests pass. Now let me check if there are any other tests related to logging in the project:
Assistant
Let me also look at the GrpcLoggingInterceptor to see if there's any logging related to the issue:
Assistant
Now let me also look at the gRPC test files to see if there's any test that could be affected:
Assistant
Let me look at how gRPC is being tested and if there's any interaction with the logging:
Assistant
Those matches are likely because of imports. Let me see what they actually test:Let me look at the GrpcServerIT to understand how logging might be tested:
Assistant
Let me check if there are any tests I might have missed for the formatters:
Assistant
Now let me also look at the DefaultLogger to see if there's any issue there. The DefaultLogger also uses
message.formatted()but that's for the ArcadeDB-specific log manager calls, not for JUL LogRecord parameters.Wait, actually let me think more carefully. The issue mentions:
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.
Assistant
Let me look at GrpcLogAppender mentioned in the issue:
Assistant
Let me view my current changes:
Assistant
Let me now run the existing tests to verify nothing is broken:
Assistant
All tests pass. Now let me also try to run a broader test set:
Assistant
Let me also try to verify my fix with an end-to-end test by creating a temporary test file:
Assistant
Let me also test with the AnsiLogFormatter:
Assistant
Now let me look at how gRPC actually logs in different versions to ensure my fix covers all cases:
Assistant
Let me check if there are any places in the codebase that might rely on the old
String.formatted()style:Assistant
Let me also check if there are any places where
Logger.log()is called with parameters:Assistant
Let me run the relevant tests in the gRPC module:
Assistant
I need to build the parent modules first:
Assistant
Let me also run all the gRPC tests that don't require starting a server:
Assistant
Let me also run all the engine tests:
Assistant
Let me check if there are any server tests that test logging:
Assistant
Let me also check if any tests might be affected by my changes - I should look for tests that test formatted log output:
Assistant
Let me check for tests that directly verify the contents of log messages:
Assistant
Let me look at this test more carefully:
Assistant
Let me see if this test is actually checking for the formatted output:
Assistant
Let me run this test to make sure it still passes:
Assistant
Let me check the other test:
Assistant
Let me run a broader set of tests to make sure nothing is broken:
Assistant
Let me run all the unit tests in the engine:
Assistant
Let me run only the logging-related tests:
Assistant
Let me verify my changes are complete and view the final files:
Assistant
Let me run the engine tests one more time to confirm:
Assistant
Let me also check for any other places that might be affected:
Assistant
Let me run a comprehensive set of tests:
Assistant
Let me do one more end-to-end test to verify the fix works for the actual gRPC scenario:
Assistant
Let me clean up my temporary test files:
Assistant
Let me check the final state of the changes:
Assistant
Let me also verify the code compiles:
Assistant
Let me run the final test one more time to confirm:
Assistant
Let me create a final reproducer to confirm the fix works end-to-end:
Assistant
The fix works correctly. Let me also clean up:
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.