Issue with enabling user supplied id in JanusGraph

37 views
Skip to first unread message

Lesley Deng

unread,
Aug 29, 2024, 4:00:25 AM8/29/24
to Gremlin-users
Hello,

I am encountering an issue while trying to configure JanusGraph to allow user-supplied-ids. I followed the guide and made the necessary settings, but it seems they are not taking effect. Here are the details of my environment and the steps I have taken:
JanusGraph version: 1.0.0
I started the Gremlin console using ./bin/gremlin.sh.
Following the documentation found at [Custom Vertex ID](https://docs.janusgraph.org/master/advanced-topics/custom-vertex-id/), I executed the following commands:
`
gremlin> graph = JanusGraphFactory.open('inmemory')
15:50:12 INFO  org.janusgraph.diskstorage.configuration.builder.ReadConfigurationBuilder.setupTimestampProvider - Set default timestamp provider MICRO
15:50:12 INFO  org.janusgraph.graphdb.idmanagement.UniqueInstanceIdRetriever.getOrGenerateUniqueInstanceId - Generated unique-instance-id=7f0001012947944-ubuntu1
15:50:12 INFO  org.janusgraph.diskstorage.configuration.ExecutorServiceBuilder.buildFixedExecutorService - Initiated fixed thread pool of size 320
15:50:12 INFO  org.janusgraph.graphdb.database.StandardJanusGraph.<init> - Gremlin script evaluation is disabled
15:50:12 INFO  org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller.initializeTimepoint - Loaded unidentified ReadMarker start time 2024-08-29T07:50:12.927784Z into org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller@148fca83
==>standardjanusgraph[inmemory:[127.0.0.1]]
gremlin> mgmt = graph.openManagement()
==>org.janusgraph.graphdb.database.management.ManagementSystem@3a13f663
gremlin> mgmt.set("graph.set-vertex-id", true)
==>org.janusgraph.diskstorage.configuration.UserModifiableConfiguration@56f61d74
gremlin> mgmt.commit()
==>null
`

However, when I called graph.features(), the result indicates that the setting has not been applied.  See
`
gremlin> graph.features()
==>FEATURES
> VertexFeatures
...
>-- UserSuppliedIds: false
`

I am aware that the setting **graph.set-vertex-id** is of **GLOBAL_OFFLINE** mutability level according to the [Configuration Reference](https://docs.janusgraph.org/configs/configuration-reference/), so I have not started any traversal instances on the graph, which I believe is the correct approach.

Could you please advise what might be causing this issue and how I can resolve it?

Thank you for your assistance.

Best regards,
Lesley

Boxuan Li

unread,
Aug 29, 2024, 4:11:08 AM8/29/24
to gremli...@googlegroups.com
Hi,

This is a JanusGraph-specific issue so let’s keep it in JanusGraph space. I see you’ve already created https://github.com/JanusGraph/janusgraph/discussions/4660 so let’s keep the conversation there.

Best,
Boxuan Li

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/895afe3d-cb7b-48eb-a373-95e692c70010n%40googlegroups.com.

Lesley Deng

unread,
Aug 29, 2024, 4:37:11 AM8/29/24
to Gremlin-users
Yes! And thank you for your help, this issue has been resolved in part
Reply all
Reply to author
Forward
0 new messages