Chronicle-Wire icon indicating copy to clipboard operation
Chronicle-Wire copied to clipboard

ServiceCfg fails to read it's own YAML

Open maxim-ponomarev opened this issue 2 years ago • 3 comments

Reproduced in e685f9e (824-servicesCfg-to-yaml-and-back)

maxim-ponomarev avatar Feb 02 '24 17:02 maxim-ponomarev

This works with WireType.TEXT as the reader. It's a bug in YAML_ONLY parsing.

peter-lawrey avatar Feb 05 '24 10:02 peter-lawrey

The problem is a workaround for detecting if a value is a marshallable or a string, rewinding the bytes and trying again. This strategy can't be supported in YAML as it's stateful and rewinding isn't enough. The solution is to support converting from text to an object in wire. This will require a change in services.

peter-lawrey avatar Feb 05 '24 12:02 peter-lawrey

c.f. https://github.com/OpenHFT/Chronicle-Wire/pull/826

peter-lawrey avatar Feb 05 '24 12:02 peter-lawrey