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 first locate the JUL-to-server logging bridge and relevant tests/build configuration, then reproduce the formatting path with the smallest existing test target before changing production code.
- Assistant
The server installs a custom
java.util.logging.LogManager, so this is more likely inServerLogManagerthan an SLF4J dependency. I’ll inspect that class plus ArcadeDB’s formatter and logging facade to identify exactly whereLogRecordparameters are discarded. - Assistant
Both custom formatters incorrectly apply
String.formatted, which supports ArcadeDB’s%smessages but not JUL’s{0}convention. Java’sFormatter.formatMessage(LogRecord)implements JUL resource-bundle lookup andMessageFormat; the compatible fix should support standard JUL first while retaining ArcadeDB’s existing printf-style messages. I’ll inspectDefaultLoggerand formatter tests to establish those compatibility requirements and module test conventions. - Assistant
The shared engine formatters are the actual bridge: external JUL records and ArcadeDB facade records converge there. I’ll inspect how facade
LogRecords are populated and then make a temporary (non-repository) reproducer against the current compiled formatter to confirm{0}remains literal while%sworks. - Assistant
DefaultLoggernormally preformats ArcadeDB%messages, while third-party JUL records retain parameters for the handler. I’ll now compile/run the focused engine test and execute a temporary Java reproducer that directly formats the sameLogRecordshape gRPC emits. This records the failure before editing without adding a repository test. - Assistant
The Maven wrapper requires
HOME, which is unset in this container; consequently the chained reproducer file was never created. I’ll rerun with a temporaryHOME=/tmpenvironment value, leaving repository configuration untouched. - Assistant
The reproducer confirms the exact defect:
LogFormatteroutputs the gRPC template unchanged, while the focused baseline tests pass. I’ll centralize message rendering inLogFormatter: first use JUL’s inheritedformatMessage, which performs resource-bundle lookup andMessageFormatsubstitution, then retain the oldString.formattedfallback only when JUL did not transform the template.AnsiLogFormatterwill reuse this helper so console and file logs behave identically. - Assistant
Python is unavailable, so no files were changed. I’ll use the provided literal replacement editor instead, applying the same focused changes to both formatter classes.
- Assistant
The diff now routes both output paths through JUL-compliant formatting and keeps malformed/non-JUL templates safe. I’ll recompile, rerun the focused logging tests, and extend the temporary reproducer to verify: gRPC
{0}/{1}substitution in file and console formatters, legacy%scompatibility, apostrophe/MessageFormat behavior, and malformed percent text remaining non-fatal. - Assistant
The post-fix reproducer passes all targeted cases, including both production formatters, and
LoggerTestremains green. I’ll now inspect repository status for generated/unintended changes, review the final diff, and run the broader engine test suite because this shared formatter can affect all engine logging. - Assistant
The broad engine suite exceeded the terminal’s five-minute command limit and was terminated; its partial output showed no assertion failures, but it cannot be counted as a completed pass. I’ll verify no Maven process remains, inspect Surefire reports for any failures generated before timeout, and run a package/compile check plus the focused test again if needed.
- Assistant
No Maven/Surefire process remains. The timed-out broad run completed 64 test classes before termination, all with zero failures/errors; only the two intended source files are modified and
git diff --checkis clean. I’ll perform one final test-skipping package build to verify production compilation/artifact creation, then review status before submission.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.