-
Notifications
You must be signed in to change notification settings - Fork 871
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
Cannot delete Edge because of missing in Vertex - java exceptions #7796
Comments
@MartinHubinek just run |
It doesn't help. Output of check database is below. Sorry for format, cannot get it in putty to better structured output. Java exceptions are still same in log.
|
@MartinHubinek which distribution do you use? Console command should modify graph structure too, but in your case, it only checks storage integrity. Could you download the distribution from the official site? |
I've followed this How-To . And in that time I've used latest stable community version. I suppose this is a correct way? I can try to upgrade to 2.2.29 and then run again check database. |
yes, but it looks like you do not have graphdb console integrated into your distribution. please try 2.2.29 version. |
Upgraded to 2.2.29. In studio it looks stil the same, even in the logs - same java exceptions. But when I run check database I get this error:
|
Hm I see now, @maggiolo00 could you check that? |
can you execute this query from studio and paste here the raw json ?
Thanks |
@MartinHubinek |
Hi, here you can see data from select:
I'am using this Javascript code to create new edge:
From client side I'am sending data this way:
Data is javascript object with from and to property. |
And I'am using orintjs driver. So far I've been creating a lot of vertices and now I'am staring creating edges for the first time but vertices works fine for me. |
from this
can you add Thanks |
and also
from/to which values contains? |
My code on server side now:
And server cosole output when i create edge in my client app:
I'am sending new RID back to my client side in response to have object with correct RID for feature edit etc. |
what about the result it self ?
|
Here it is:
|
as i see in/out are no string but RecordId which is correct. so the delete of the edge
just to be sure Thanks |
Here is output:
I've tried to delete #11:8 and it works fine. But the issue is still about edge #12:5 . Cannot delete this, cannot use graph visalization in studio etc. I've written about issue with #12:5 in my original post, probably create edge for non existent vertex, but could not say how it happens. The question is still same, am I able to fix #12:5 edge or delete it somehow? |
yes you can fix this. But first can you check if this two vertices exist?
and post here Thanks |
Hi @MartinHubinek
it should work Thanks |
Yes, it works. Great, thank you very much. |
OrientDB Version: 2.2.26
Java Version: 1.8.0_144
OS: Ubuntu 16.04.3 LTS
Expected behavior
Edge should be deleted.
Actual behavior
Cannot delete Edge because of missing out Vertex. Throwing java exceptions. Cannot use studio graph editor. Is there any way to recreate specific rid? Or to any other way how to "force" delete edge? I still have class where Vertex was created, but when I create new it got #15:1 instead of #15:0 which I'am missing.
Somehow I'am missing out Vertex on of my edges. Probably Vertex record was deleted in studio but my application through API has created Edge. When I try to delete edge record from E class in studio, nothing happens. When i try load graph in studio it show this error:
java.lang.ClassCastException: java.lang.String cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable
In OrientDB log I can see this:
The text was updated successfully, but these errors were encountered: