Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snakeyaml warning in 1.0.0 #3979

Closed
li-boxuan opened this issue Sep 13, 2023 · 6 comments
Closed

Snakeyaml warning in 1.0.0 #3979

li-boxuan opened this issue Sep 13, 2023 · 6 comments

Comments

@li-boxuan
Copy link
Member

          I've just noticed that I'm now getting a warning if I try to use this config file with our latest Docker images:
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
Sep 13, 2023 2:23:59 PM org.yaml.snakeyaml.internal.Logger warn
WARNING: Failed to find field for org.apache.tinkerpop.gremlin.driver.Settings.serializers

Do you know what could be causing this, @li-boxuan?

It however continues to work afterwards. I haven't tested however whether the serializer config is actually used or not.

Originally posted by @FlorianHockmann in #3914 (comment)

@li-boxuan li-boxuan added this to the Release v1.0.0 milestone Sep 13, 2023
@pdsway
Copy link

pdsway commented Sep 21, 2023

This message is from Tinkerpop 3.70

@ShahimEssaid
Copy link

ShahimEssaid commented Sep 21, 2023 via email

@pdsway
Copy link

pdsway commented Sep 21, 2023

interesting, gremlin-driver, "serializer" is the prop for gremlin client yaml (singular) and "serializers" is server side.
i did a quick test changing it to just "serializer".

It does indeed fix gremlin-console (client) which has yaml field "serializer" (singular) but breaks gremlin-server which uses (or used) field "serializers" (multi)

gremlin-server:
Sep 21, 2023 4:46:22 PM org.yaml.snakeyaml.internal.Logger warn
WARNING: Failed to find field for org.apache.tinkerpop.gremlin.server.Settings.plugins
[INFO] o.a.t.g.s.GremlinServer - Configuring Gremlin Server from conf/gremlin-server.yaml

Look down L167 and that's where the client gets picked up.
So i think its just Snakeyaml now reporting/logging a missing field where it was silently ignored before.
Seems like it's working, just warning needs to be suppressed.

@li-boxuan
Copy link
Member Author

Yeah seems like it's just a warning. Weird though, I don't see this warning... I built JanusGraph from source code.

gremlin> :remote connect tinkerpop.server conf/remote.yaml session
12:16:12 INFO  org.apache.tinkerpop.gremlin.driver.Connection.<init> - Created new connection for ws://localhost:8182/gremlin
12:16:12 INFO  org.apache.tinkerpop.gremlin.driver.ConnectionPool.<init> - Opening connection pool on Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin} with core size of 1
==>Configured localhost/127.0.0.1:8182-[706c2fc6-38e5-4436-a85b-682a7b4676b4]
gremlin>

@FlorianHockmann
Copy link
Member

I verified that this also occurs in Gremlin Console with Gremlin Server without using JanusGraph. So I created an issue for this in the TinkerPop issue tracker: https://issues.apache.org/jira/browse/TINKERPOP-3001

I'm removing the 1.0.0 milestone here as we plan to release this shortly and since this is only a warning it really shouldn't block the release.

@FlorianHockmann FlorianHockmann removed this from the Release v1.0.0 milestone Oct 12, 2023
@li-boxuan
Copy link
Member Author

Thanks @FlorianHockmann, closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants