How to solve the problem vertex conflict in NebulaGraph Database? - nebula-graph

When I update some vertices with NebulaGraph, it gives the hint "vertex conflict".
Want to know why? I checked every operation and find nothing.
I checked every step and operation during the process.
Hope to know why this hint is given and how to solve this problem.

This happens when two threads are writing on the same vertex. Just retry.
https://docs.nebula-graph.io/3.3.0/20.appendix/0.FAQ/#how_to_resolve_the_error_edge_conflict_or_vertex_conflict

Related

gremlin shortestPath() with step

where is the document about gremlin with step?
https://tinkerpop.apache.org/docs/current/reference/#with-step
https://tinkerpop.apache.org/javadocs/current/full/org/apache/tinkerpop/gremlin/process/computer/traversal/step/map/ShortestPath.html
there is no example I can use.
I want to know all with-step option(like ShortestPath.edges-Direction.OUT) for shortestPath().
I found below
g.withComputer().V(xxx).shortestPath().with(ShortestPath.edges, Direction.OUT).with(ShortestPath.distance, 'cost').with(ShortestPath.target, hasId(bbb))
I want to know all option I can use
The with()-step is not really a "step". It is a step modulator. Its context is bound to the step that it is modifying and therefore you won't find "all the with() configurations" in one place. You can only find them in the documentation related to the steps that they modulate. Using shortestPath() as an example, note that if you look at the shortestPath() step documentation all of the options are present.
You may also need to consult the documentation of your graph provider as they may provide their own configuration keys for certain steps which can help optimize or otherwise modify traversal operations.

Unique violation when I was training my conversation service

In my conversation service, I'm using Watson conversation service. In dialog nodes, one branch has sub-nodes. When I train the bolt, it didn't go to the sub-node I defined, so I picked the one I defined, but I got "Unable to change the intent. Error: Unique Violation". What does this error mean? How to fix it?
Thanks for your help!
Emily
I have seen such an error when you try to add a question to an intent that is a duplicate to an all ready defined question within the same intent. It also happens when you try and define a duplicate to an Entity.
Double check your questions. Otherwise I think we will need more info or examples of the code etc.

Deleting a property from a node in Alfresco

I want to remove a property from a node.
Using "removeProperty(NodeRef nodeRef, QName qname)" i can remove it, but i don't know will it cause any problem(like data correption, indexing issue or something ).
Can anyone please help me
The short answer is, no - it won't cause any data corruption or indexing issues. One caveat to this, the data model will not allow you to remove mandatory properties (you'll get an error if you attempt to do this). It will not cause any issues with indexing.

Lot's of data was tripled in nop commerce, customer roles, message templates, etc

a client of ours was messing around with the admin side of nopcommerce, and she found a lot of the data seems to have tripled. After lot's of searching around, I can't seem to find anyone who has had a similar issue.
One thing I noticed when initially looking at this, was that there were 3 languages (all English). Removing 2 of these didn't give any errors, but also didn't help with the tripled data. Up until now, that was my best guess as to what could be going wrong.
Has anyone else experienced anything like this, or have a greater knowledge of nopCommerce that might have an idea what is going wrong?
Any help would be greatly appreciated!
Thanks!
http://i.imgur.com/G4hsIDV.png
http://i.imgur.com/lF43PDm.png
Problem you installed this nopcommerce, using the wizard, many times. When you did that some records are duplacaded, because the wizard doesn`t treat it.
I've the same problem and o solve that removing it directly in database...

How to properly debug OCaml code?

Can I know how an experienced OCaml developer debugs his code?
What I am doing is just using Printf.printf. It is too troublesome as I have to comment them all out when I need a clean output.
How should I better control this debugging process? special annotation to switch those logging on or off?
thanks
You can use bolt for this purpose. It's a syntax extension.
Btw. Ocaml has a real debugger.
There is a feature of the OCaml debugger that you may not be aware of which is not commonly found with stateful programming and is called time travel. See section 16.4.4. Basically since all of the information from step to step is kept on the stack, by keeping the changes associated with each step saved during processing, one can move through the changes in time to see the values during that step. Think of it as running the program once logging all of the values at each step into a data store then indexing into that data store based on a step number to see the values at that step.
You can also use ocp-ppx-debug which will add a printf with the good location instead of adding them manually.
https://github.com/OCamlPro-Couderc/ocp-ppx-debug

Resources