gRPC ManagedChannelImpl log messages contain unsubstituted placeholders Affected…
- User
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.
- Assistant
I’ll trace the JUL-to-server logging path, patch formatting at the correct boundary, and run the focused logging tests plus any relevant module checks.
- Assistant
rgisn’t installed in this checkout, so I’m switching to targetedfind/grepsearches and checking the repository guidance before editing. - Assistant
Verification will be a regression test that constructs a JUL
LogRecordwith{0}/{1}parameters and asserts both plain and ANSI formatters emit substituted values, followed by the engine module test and compile. The defect is in the shared formatter: it appliesString.formatted(printf syntax) instead of JUL’sFormatter.formatMessage, which is specifically responsible forMessageFormatparameter substitution. - Assistant
The test build reached Surefire but attempted to fetch a missing plugin artifact, so I stopped it and will keep all subsequent Maven runs offline. The production sources and test sources compiled successfully before that point. I’m now applying the formatter fix without adding any dependency.
- Assistant
Offline compilation passes for both production and test sources. The JUnit execution itself is blocked only because this workspace lacks Surefire’s JUnit-platform provider in its local Maven cache. I’ll still exercise the compiled formatter behavior directly in the JVM, then inspect the diff and run an offline package compile that skips test execution.
- Assistant
The repository ignores every directory named
log, including a matching test package path. I’m relocating the regression test to the existing test namespace so it is included in the patch and CI rather than silently ignored.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.