JanusGraph / JanusGraph/janusgraph

.net driver doesn't connect new graph traversal source

Open
#4,749 0 comments 2 reactions 0 assignees View on GitHub
kind/bug/possible
Dominant language
Java
Stars
5.8k
Forks
1.2k
Avg merge
13h 53m
Merged PRs (30d)
6

Description

I try to reach new graph's GraphTraversalSource but it doesn't recognize it. Here is my steps

1. Configuration in janusgraph-server.yaml
```
graphs: {
ConfigurationManagementGraph: conf/janusgraph-berkeleyje-server.properties
}
```

2. Groovy script is
```
def createNewGraph(graphName)
{
map = new HashMap();
map.put("storage.backend", "berkeleyje");
map.put("storage.hostname", "127.0.0.1");
map.put("graph.graphname", graphName);
map.put("storage.directory", "/var/lib/janusgraph/"+graphName);
ConfiguredGraphFactory.createConfiguration(new MapConfiguration(map));
}
```

3. Call groovy script and see the new graph
![image](https://github.com/user-attachments/assets/7dee40ca-6cea-444d-9da2-4f2a3bd57038)

4. Try to connect that graph with
```
_remoteConnection = new DriverRemoteConnection(_gremlinClient, "test");
_g = AnonymousTraversalSource.Traversal().WithRemote(_remoteConnection);
```

When I want to make operation with traversal object ( like _g.V().Count().Next()) it returns

>Gremlin.Net.Driver.Exceptions.ResponseException: InvalidRequestArguments: The traversal source [test] for alias [g] is not configured on the server.

What should I do to make that graph recognizable for the .net driver?

Contributor guide

Open the contributing guide

Research direction

Start with the janusgraph-server.yaml graph configuration, the Groovy createNewGraph script, and the .NET DriverRemoteConnection setup shown in the report. Trace how the dynamically created graph name is exposed to the remote traversal source, then verify that _g.V().Count().Next() succeeds through the .NET driver.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, java
Domain
api, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.