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

Serialization of TinkerGraph for subgraph() step should be supported by default #2843

Open
FlorianHockmann opened this issue Nov 3, 2021 · 0 comments

Comments

@FlorianHockmann
Copy link
Member

Describe the feature:
Serialization of a TinkerGraph should be supported by default, both by JanusGraph Server and also by the Gremlin Console that we ship. We can solve this by adding the TinkerPop IO registry in addition to our own IO registry for JanusGraph Server and in the config files included in the zip archive distribution.

Currently users get this exception if they try to use the subgraph() step without changing the configuration:

org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Error during serialization: Class is not registered: org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph Note: To register this class use: kryo.register(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.class);

This issue was also reported on gremlin-users: https://groups.google.com/g/gremlin-users/c/DNcCDcYQ9fA

Describe a specific use case for the feature:
The subgraph() step can be used to get a part of the whole graph back that can then be further traversed or exported to a file.

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

No branches or pull requests

1 participant