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

Update vertices and edge using orientDB studio #6894

Closed
1 of 5 tasks
botekchristophe opened this issue Nov 8, 2016 · 2 comments
Closed
1 of 5 tasks

Update vertices and edge using orientDB studio #6894

botekchristophe opened this issue Nov 8, 2016 · 2 comments
Assignees

Comments

@botekchristophe
Copy link

botekchristophe commented Nov 8, 2016

OrientDB Version, operating system, or hardware.

  • v2.1.23

Operating System

  • Linux
  • MacOSX
  • Windows
  • Other Unix
  • Other, name?

Expected behavior and actual behavior

I expect the command done on OrientDB UI to be propagated to the same cache as command performed by Java API. But instead sometimes, the data between what we see using Java API and and OrientDB studio are not consistent with each other.

Steps to reproduce the problem

I removed an edge between two vertices using OrientDB studio:

  • Go to Browse page
  • Fetch one of my two vertices using SQL request
  • Click on its rid
  • On the right hand side of the page, remove its edge. ( rid of this edge was W3C Web SQL Database compliant? [moved] #26:42)
  • Then I created an edge (using the graph page) of the same type between this vertex and an other vertex. At the begining I had V1 -edge1-> V2 and at the end V1 -edge2 -> V3.

I also have a scala/java app that connect to this database which also work on these vertex. What I expected was to find V3 linked to V1 with edge2 but instead I had my application trying to Fetch edge1 which doesnt exist anymore.

Error thrown by my app :

com.orientechnologies.common.log.OLogManager log
WARNING: Record (#26:42) is null

I encountered this by simply trying to Fetch V1 (this worked) and then by trying to find vertices connected to V1 using edge with Direction.OUT and with label "belongsTo" which was the type of my edges 1 and 2.

scala code :

val vertices = orientGraph.getVertices(MyClass.index, value)
val vertex: ScalaVertex = vertices.headOption.getOrElse {
throw VertexNotFoundException(MyClass.index, value)
}
vertex.getVertices(Direction.OUT, "belongsTo")

the last line is failing with the error seen above.

Apparently, a quick work around was to restart orientDB. Not really good for production...

@wolf4ood
Copy link
Member

@botekchristophe

are you in remote or plocal connection?

@wolf4ood wolf4ood self-assigned this Nov 17, 2016
@lvca
Copy link
Member

lvca commented Aug 5, 2017

No answer, closing it.

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

No branches or pull requests

3 participants