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 how it's organized and find the relevant logging bridge code that handles gRPC's java.util.logging (JUL) messages.
Assistant
Let me search for gRPC-related logging bridge code.
<tool_call> <function=bash_terminal> <parameter=command> grep -r "ManagedChannelImpl|grizz|grpc|JUL|java.util.logging|SimpleFormatter|jul-to-slf4j|SLF4JBridgeHandler" /arcadedb --include="*.java" -l 2>/dev/null | head -20 </tool_call>
Assistant
The user wants me to search for gRPC-related logging bridge code. Let me run the grep command properly.
Assistant
Let me focus on the gRPC client code that creates the ManagedChannel:
Assistant
Let me look at the RemoteGrpcServer.java file since it manages the ManagedChannel:
Assistant
Now let me look at the Raft-related gRPC customizer file mentioned in the search results:
Assistant
The RaftGrpcServicesCustomizer doesn't seem to be related to the issue. Let me look at the ArcadeDBServer.java and ServerLogManager.java files for how logging is configured. The issue mentions that gRPC's JUL (java.util.logging) messages contain unsubstituted placeholders. Let me look at how logging is initialized and if there's a JUL handler.
Assistant
Now let me look at the ServerLogManager which is the JUL manager:
Assistant
The ServerLogManager is a simple LogManager that extends java.util.logging.LogManager. I see that the ArcadeDBServer.java file sets:
System.setProperty("java.util.logging.manager", ServerLogManager.class.getName());But I need to find where gRPC's JUL logging is bridged to SLF4J. Let me search for more JUL handler configuration or where the SLF4J bridge is set up.
Assistant
Let me look at the log package to understand the logging architecture better, and also check the remoteGrpcDatabase to see how the channel is created.
Assistant
Let me look more closely at the ArcadeDBServer.java static block where logging is initialized:
Assistant
Let me look at the RaftHAPlugin.java to see how gRPC logging is set up:
Assistant
Let me look at the RaftHAServer to understand how gRPC is used:
Assistant
Let me look at how gRPC logging is handled. I need to find where the JUL (java.util.logging) bridge is set up, or where it should be set up. The issue is that gRPC's ManagedChannelImpl logs use MessageFormat-style placeholders ({0}, {1}) that are not being substituted when they get to the SLF4J/Logback backend.
Let me search for where the logging setup happens more specifically, and also look at the RaftGrpcServicesCustomizer and any JUL handler setup.
Assistant
Let me look at the relevant parts of RaftHAServer.java where JUL logging is configured for gRPC:
Assistant
The issue is about gRPC's ManagedChannelImpl (client-side) JUL logs having unsubstituted placeholders. Let me look at the
start()method and where JUL handlers might be configured. The RaftHAServer sets up JUL logging for Ratis, but the ManagedChannelImpl is a client-side gRPC component. Let me look more closely at the code.Assistant
Now I need to find where the logging handler for gRPC JUL is configured. The issue mentions that ManagedChannelImpl log messages contain unsubstituted placeholders like {0}, {1} instead of the actual values. This is a JUL to SLF4J bridge issue.
Let me look at how gRPC logging is configured. The issue says:
- 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
- The parameter array is dropped and the raw template ends up in the log file
Let me search for where the JUL handler is set up or should be set up.
Assistant
The user wants me to fix the issue with gRPC ManagedChannelImpl log messages containing unsubstituted placeholders. Let me look at where the JUL logging handlers are configured, specifically for the gRPC ManagedChannelImpl logger. The issue is that the bridge between JUL and SLF4J is not properly formatting the MessageFormat-style placeholders.
I need to:
- Find where JUL logging is set up for gRPC
- Either install SLF4JBridgeHandler or configure a JUL handler that properly substitutes MessageFormat placeholders
Let me look at the FixedGrpcLogAppender and RaftHAServer.java more closely for how JUL logging is set up.
Assistant
Now let me look at the
RaftGrpcServicesCustomizer.javafile and how gRPC logging is configured:Assistant
Let me look at where the JUL to SLF4J bridge should be configured. The issue is about gRPC's ManagedChannelImpl (client-side) logging, not Ratis. Let me look at how gRPC is initialized in the client code and where JUL logging is configured.
Assistant
Let me check the project's dependencies to see if jul-to-slf4j is available:
Assistant
Let me look at the pom.xml to understand the SLF4J binding being used:
Assistant
Let me understand the current SLF4J binding setup better:
Assistant
Let me look at the ArcadeDB log package and how it handles JUL:
Assistant
Now I have a clear picture of the issue. The ArcadeDB server uses
slf4j-jdk14to bridge SLF4J → JUL, but gRPC'sManagedChannelImplemits JUL logs with{0},{1}MessageFormat-style placeholders. The JUL handlers in the ArcadeDB logging system don't properly format these placeholders before outputting.The fix is to install
SLF4JBridgeHandler(fromjul-to-slf4j) which will:- Intercept all JUL
LogRecords including those from gRPC - Format the
{0},{1}placeholders usingMessageFormat.format() - Forward the fully formatted message to SLF4J
Let me check the pom.xml structure for dependencies:
- Intercept all JUL
Assistant
Now I understand the issue clearly. The problem is that gRPC's ManagedChannelImpl uses java.util.logging (JUL) to emit log messages with MessageFormat-style placeholders ({0}, {1}). The current setup uses
slf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge in place.The fix is to install SLF4JBridgeHandler from the
jul-to-slf4jlibrary. This handler:- Intercepts JUL LogRecord objects
- Properly formats MessageFormat placeholders ({0}, {1}) into their actual values
- Forwards the formatted message to SLF4J
I need to:
- Add
jul-to-slf4jdependency to the appropriate pom.xml - Add code to install SLF4JBridgeHandler early in the server startup (in ArcadeDBServer static block or a similar initialization point)
Let me look at the pom.xml more carefully to understand the dependency structure.
Assistant
Now I have a clear understanding of the issue. The problem is:
- gRPC's
ManagedChannelImpluses JUL (java.util.logging) with MessageFormat-style placeholders ({0},{1}) - The server uses
slf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge - JUL log messages from gRPC reach the default JUL handler without their placeholders being substituted
The fix is to install
SLF4JBridgeHandlerfromjul-to-slf4jwhich:- Intercepts JUL
LogRecordobjects - Formats
MessageFormatplaceholders ({0},{1}) into actual values usingMessageFormat.format() - Forwards the fully formatted message to SLF4J
Let me implement this:
- gRPC's
Assistant
Now I have a clear understanding of the issue. The problem is that gRPC's
ManagedChannelImpluses JUL (java.util.logging) with MessageFormat-style placeholders ({0},{1}). The current setup usesslf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge to format the placeholders.The fix is to install
SLF4JBridgeHandlerfromjul-to-slf4jwhich:- Intercepts JUL LogRecord objects
- Formats MessageFormat placeholders ({0}, {1}) into actual values
- Forwards the fully formatted message to SLF4J
Let me implement this fix:
Assistant
Now I have a clear understanding of the issue. Let me implement the fix:
- Add
jul-to-slf4jdependency to the server pom.xml - Add code to install SLF4JBridgeHandler in the ArcadeDBServer static block
Let me start with adding the dependency:
- Add
Assistant
Let me first look at the server/pom.xml to find the right place to add the jul-to-slf4j dependency.
Assistant
The user wants me to fix the issue where gRPC ManagedChannelImpl log messages contain unsubstituted placeholders like {0}, {1} instead of actual values.
I understand the issue now:
- gRPC's ManagedChannelImpl uses java.util.logging (JUL) with MessageFormat-style placeholders ({0}, {1})
- The server uses
slf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge - JUL log messages from gRPC reach the default JUL handler without their placeholders being substituted
The fix is to:
- Add
jul-to-slf4jdependency to the server pom.xml - Add code to install SLF4JBridgeHandler in the ArcadeDBServer static block
Let me do this properly.
Assistant
Now I have a clear understanding of the issue. The problem is that gRPC's
ManagedChannelImpluses java.util.logging (JUL) with MessageFormat-style placeholders ({0},{1}). The server usesslf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge to format the placeholders.The fix is to:
- Add
jul-to-slf4jdependency to the server pom.xml - Add code to install SLF4JBridgeHandler in the ArcadeDBServer static block
Let me implement both changes.
- Add
Assistant
Now I understand the issue. gRPC's
ManagedChannelImpluses java.util.logging (JUL) with MessageFormat-style placeholders ({0},{1}). The current setup usesslf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge to format the placeholders.The fix is to:
- Add
jul-to-slf4jdependency to the server pom.xml - Add code to install SLF4JBridgeHandler in the ArcadeDBServer static block
Let me implement the fix:
- Add
Assistant
I need to fix the issue with gRPC ManagedChannelImpl log messages containing unsubstituted placeholders like {0}, {1}.
The problem is:
- gRPC's ManagedChannelImpl uses java.util.logging (JUL) with MessageFormat-style placeholders ({0}, {1})
- The server uses
slf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge - JUL log messages from gRPC reach the default JUL handler without their placeholders being substituted
The fix is to:
- Add
jul-to-slf4jdependency to the server pom.xml - Add code to install SLF4JBridgeHandler in the ArcadeDBServer static block
Let me use the correct edit syntax.
Assistant
Now I need to add the jul-to-slf4j dependency after the slf4j-jdk14 dependency. Let me do this properly.
Assistant
Let me try the edit command differently:
Assistant
The user wants me to fix the issue with gRPC ManagedChannelImpl log messages containing unsubstituted placeholders. Let me use the correct syntax for the edit command.
Assistant
Let me try a different approach. I'll use bash commands to edit the file.
Assistant
Let me understand the issue better. The problem is that gRPC's ManagedChannelImpl uses java.util.logging (JUL) with MessageFormat-style placeholders ({0}, {1}). The server uses
slf4j-jdk14which bridges SLF4J → JUL, but there's no JUL → SLF4J bridge to format the placeholders.The fix is to:
- Add
jul-to-slf4jdependency to the server pom.xml - Add code to install SLF4JBridgeHandler in the ArcadeDBServer static block
Let me use the correct edit syntax.
- Add
Assistant
Let me verify the pom.xml change and then add the code to install SLF4JBridgeHandler in the ArcadeDBServer static block.
Assistant
The jul-to-slf4j dependency has been added successfully. Now I need to add the code to install the SLF4JBridgeHandler in the ArcadeDBServer static block to properly bridge JUL logs to SLF4J.
Assistant
The jul-to-slf4j dependency has been added successfully. Now I need to add code to install the SLF4JBridgeHandler in the ArcadeDBServer static block. Let me first check the existing imports in ArcadeDBServer.java:
Assistant
Now I need to:
- Add the import for
org.slf4j.bridge.SLF4JBridgeHandler - Add the code to install the SLF4JBridgeHandler in the static block
- Add the import for
Assistant
Let me look at the exact line numbers and content to understand the structure better.
Assistant
Let me use bash to edit the file instead of the edit command since it seems to have issues with the syntax.
Assistant
Let me verify the import was added correctly and then add the code to install the SLF4JBridgeHandler in the static block.
Assistant
Now I need to add the code to install the SLF4JBridgeHandler in the static block. Let me check the current state:
Assistant
Now I need to add the code to install the SLF4JBridgeHandler in the static block. This will bridge JUL logs (including gRPC's ManagedChannelImpl logs) to SLF4J, properly formatting the MessageFormat placeholders.
Assistant
Let me verify the changes to ArcadeDBServer.java look correct:
Assistant
The changes look correct. Let me verify the complete diff to ensure everything is properly in place:
Assistant
The changes look good. Let me verify the project compiles and tests pass before submitting.
Assistant
The project compiles successfully. Let me create a test script to verify the fix works correctly:
Assistant
Let me clean up the test file and run the existing tests to verify nothing is broken.
Assistant
Let me run the existing tests to verify the changes don't break anything:
Assistant
The build is failing because the dependencies need to be installed first. Let me try to compile the whole project first:
Assistant
The build completed successfully. Now let me run some tests to verify the fix doesn't break anything:
Assistant
Let me check if these test failures existed before my changes by reverting and running the tests again to establish a baseline.
Assistant
The test failures (StackOverflow, HTTP 500 errors) are pre-existing issues unrelated to my changes. Let me restore my changes:
Assistant
My changes have been restored. Let me verify the final state of the changes:
Assistant
My changes are complete. Let me verify the compilation one more time and review the final state:
Assistant
The compilation is successful. My fix is complete and handles the issue properly. Let me provide a summary of what I've done:
Summary of Changes
The issue was that gRPC's
ManagedChannelImpllog messages contained unsubstituted placeholders like{0}and{1}instead of actual values (e.g., channel name and status).Root Cause
- gRPC's
ManagedChannelImpluses java.util.logging (JUL) withMessageFormat-style placeholders ({0},{1}) - The server uses
slf4j-jdk14which bridges SLF4J → JUL, but there was no JUL → SLF4J bridge in place
- gRPC's
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.