From 097b32e9171164048e0e5334d83afe329eed1775 Mon Sep 17 00:00:00 2001 From: Stephen Mallette Date: Fri, 13 Oct 2023 13:25:03 -0400 Subject: [PATCH] TINKERPOP-3001 Fixed config setting when reading driver settings from InputStream Fixing this resolve an issue with a WARN message popping up in the console given the bad key. Crazy - guess this never worked. CTR --- CHANGELOG.asciidoc | 1 + .../main/java/org/apache/tinkerpop/gremlin/driver/Settings.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 05106d17f17..8f77255c998 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -32,6 +32,7 @@ This release also includes changes from <>. * Added translator to the Go GLV. * Fixed bug with filtering for `group()` when the side-effect label was defined for it. * ProjectStep now throws exception when a duplicate key is provided in a query. +* Fixed bug in the Java driver configuration for serialization when reading settings from an `InputStream`. * Fixed bug in `DotNetTranslator` where `PartitionStrategy` usage was not translating properly when specifying the `readPartitions`. * Fixed bug in `PythonTranslator` where `Set` syntax was not being generated properly. * Fixed bug in configuration object given to `PartitionStrategy` for Go that prevented `readPartitions` from behing set properly. diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Settings.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Settings.java index 130c8787884..bebae850779 100644 --- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Settings.java +++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Settings.java @@ -116,7 +116,7 @@ public static Settings read(final InputStream stream) { final Constructor constructor = new Constructor(Settings.class, options); final TypeDescription settingsDescription = new TypeDescription(Settings.class); settingsDescription.addPropertyParameters("hosts", String.class); - settingsDescription.addPropertyParameters("serializers", SerializerSettings.class); + settingsDescription.addPropertyParameters("serializer", SerializerSettings.class); constructor.addTypeDescription(settingsDescription); final Yaml yaml = new Yaml(constructor);