JanusGraph not working remotely, but working when used through JanusGraph Core #4002
Replies: 3 comments
-
This sounds like a commit issue. The embbeded JanusGraph from the first code block and the JanusGraph inside JanusGraph server are (almost) independent JanusGraph instances that use the same storage keyspace. The instances only know about changes in the graph when the transaction with these changes is committed. For remote connections transactions are committed on each request. When using embedded Janusgraph with janusgraph-core, you have to issue an explicit g.tx().commit() to persist the changes. |
Beta Was this translation helpful? Give feedback.
-
I have two graphs, education and experience, and as you stated I need to commit the changes, I do that as well
and changes are reflected in the education graph, but in the experience graph, they are not. Now, since for experience graph it is working fine when I use it from the first code block, that means data is committed in cassandra, then this issue is related to Janusgraph ? I mean, which logs should I be focusing more into ? |
Beta Was this translation helpful? Give feedback.
-
I tried removing the
it will use composite index and not mixed. So, is it possible that data is added in cassandra, and mixed index but not in comosite index ? and if yes, how can I check if this is the case ? Whether data is present in composite index or not ? This is the output of the .profile() query
and it states that index was used and that too conmposite index. So why if the flag |
Beta Was this translation helpful? Give feedback.
-
I am creating a graph using Janusgraph with Cassandra as the backend and elastic for indexing. And I am stuck with a strange issue,
I create my graph like this, create a traversal, add some vertices and edges in it.
After which I run a simple query,
and it works fine. It returns me the vertex
but when I try to do it from python,
I get an empty result.
This is my janus server .properties file
I am unable to figure out the cause for this ? Is there any way you would approach to debug the issue ? I have gone through the logs but could not find anything relevant. It would be really helpful if I could get some guidance to resolve this issue.
One point to notice is, I create two graphs like this with same configs, and one is working fine, but the other is not. There is no difference in their config, still one is not working.
Beta Was this translation helpful? Give feedback.
All reactions