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
Let me start by understanding the repository structure and the issue. The problem is about gRPC's
ManagedChannelImpllog messages containing unsubstituted placeholders like{0}and{1}. The issue suggests that gRPC usesjava.util.logging(JUL) withMessageFormat-style placeholders, but the bridge to SLF4J/Logback isn't translating them.Let me explore the repository structure first, then find the relevant logging configuration and JUL-to-SLF4J bridge code.
Assistant
Let me search more specifically for the JUL-to-SLF4J bridge and logging configuration.
Assistant
Let me look at the relevant gRPC server plugin and the server startup code for
Assistant
Let me look at the main server startup class and logging configuration files
Assistant
Let me find the server module's main classes.
Assistant
Let me find the server base package and the class that starts the server.
Assistant
Let me look at ArcadeDBServer.java to see how the server starts and if there's any JUL-SLF4J bridge
Assistant
Let me try a different approach and read the file using cat.
Assistant
Now let me look at the ServerLogManager class and the DefaultLogger class, which seem central to the logging setup
Assistant
Let me read both files.
Assistant
This is just a custom LogManager that delays reset. Now let me look at DefaultLogger.java
Assistant
Let me look at the AnsiLogFormatter and the LogFormatter to see how log records are formatted
Assistant
Let me read both files.
Assistant
Let me also look at the LogFormatter base class
Assistant
Now I understand the issue clearly. Let me verify my understanding by looking at the dependency setup for SLF4
Assistant
Let me look at the parent pom.xml and the server pom.xml to check SLF4J dependencies
Assistant
Let me check the server pom.xml for logging dependencies and also look at the arcadedb-log.properties file
Assistant
Now I understand the problem fully. Let me also look at the
arcadedb-log.propertiesconfiguration file:Assistant
Now I have a clear understanding. Let me create a reproduction script to confirm the issue, then fix it
Assistant
This confirms the issue perfectly.
String.formatted()treats{0}as literal text, whileMessageFormat.format()correctly substitutes them. ButMessageFormat.format()treats%sas literal, whileString.formatted()handles that.Now let me fix both formatters to handle both styles. I'll modify them to try
MessageFormat.format()first (since it handles{0}style), and fall back toString.formatted()if no substitution occurredAssistant
Let me use the edit command directly to fix the formatters.
Assistant
Now let me fix the
LogFormatter.javato handle MessageFormat-styleAssistant
Now let me fix
AnsiLogFormatter.javasimilarlyAssistant
Now let me edit the AnsiLogFormatter.java to apply the same fix. First I need to add the
java.text.*importAssistant
Now let me replace the formatting section in `AnsiLogFormatter.java
Assistant
Now let me verify my fix compiles and works correctly. Let me create a test script
Assistant
All test cases pass. Let me now compile the affected module to make sure the changes compile
Assistant
The engine module compiles. Let me also compile the server module to ensure nothing is
Assistant
Let me check if there are any other formatters in the codebase that might have the same
Assistant
Only these two formatters exist, and both are fixed. Let me now run the engine module tests to make sure nothing is broken
Assistant
The tests timed out. Let me verify the changes compile across the entire
Assistant
The entire project compiles. Let me verify my changes with git diff
Assistant
The changes look correct. Let me verify one more edge case - what happens with messages that have curly braces that aren't placeholders:
Assistant
Let me reconsider the approach. There's an edge case with single quotes in MessageFormat (single quotes are escape characters). Let me refine the fix to be more robust - check for MessageFormat-style
Assistant
Let me use the edit command with line ranges
Assistant
There seems to be an extra
}. Let me check the full fileAssistant
There's an extra
}on line 117. Let me fix thatAssistant
Now let me update
AnsiLogFormatter.javawith the same improvedAssistant
Let me verify compilation and test the improved
Assistant
Let me test the updated approach with
Assistant
All tests pass. The gRPC
{0},{1}placeholders are now correctly substituted, while existing ArcadeDB%sstyle messages continue to work. Let me do a final review of allAssistant
Let me run a quick compilation of the full project to ensure nothing
Assistant
Everything compiles and the logic is verified. Let me now submit the changes
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.