EDG - Imported 100,000 enumeration elements .. now getting 500 HTTP Error.

23 views
Skip to first unread message

David Medinets

unread,
May 3, 2023, 12:59:24 PM5/3/23
to TopBraid Suite Users
The import worked but something is broken. I am seeing 500 HTTP error. The server loops running MutationSupport.delete(). I assume it runs out of RAM before it runs out of enumeration elements. 

I tried rebooting without success.

Can I reset the cache by SSHing to the server?

Holger Knublauch

unread,
May 3, 2023, 1:09:14 PM5/3/23
to topbrai...@googlegroups.com

On 3 May 2023, at 5:58 pm, David Medinets <david.m...@gmail.com> wrote:

The import worked but something is broken. I am seeing 500 HTTP error. The server loops running MutationSupport.delete(). I assume it runs out of RAM before it runs out of enumeration elements. 

Just checking: is this a stack overflow error? If yes, could you send the stack trace? I can see that MutationSupport.delete calls itself so there may be some corner cases.

And also to clarify, did you delete these enumerations after importing them, or what were the steps that took you there.


I tried rebooting without success.

What happens when you reboot - some other error message?

Holger



Can I reset the cache by SSHing to the server?


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/752d12be-a6a9-4ccb-9117-069a5b05278cn%40googlegroups.com.

David Medinets

unread,
May 4, 2023, 7:14:22 AM5/4/23
to topbrai...@googlegroups.com
Thanks for a quick response.

> is this a stack overflow error? If yes, could you send the stack trace? I can see that MutationSupport.delete calls itself so there may be some corner cases.

Yes, the MutationSupport.delete calls itself hundreds of times. I can't share the stack trace. The version is a bit old. I think 7.1. If the delete is still calling itself, please see if that can be avoided in a future version.

> And also to clarify, did you delete these enumerations after importing them, or what were the steps that took you there.

The delete failed. I tried deleting in several ways:

* Close file without saving.
* Delete the class - using every delete button I could find.
* Delete a named individual of the class.

> What happens when you reboot - some other error message?

Same message. 

Holger Knublauch

unread,
May 4, 2023, 8:02:51 AM5/4/23
to topbrai...@googlegroups.com
Hi David,

thanks for the info. I am asking for these details because I do not yet understand how a stack overflow could have happened in that code. I tried to reproduce deleting an enumeration (assuming we are talking about the same thing with edg:Enumeration instances) with the attached file, but there is only one level of recursion but no runaway recursion.

The cases in which it could enter a deeper recursion would involve blank node structures - are you by any chance using those?

test_enum.ttl

Holger Knublauch

unread,
May 5, 2023, 5:48:45 AM5/5/23
to topbrai...@googlegroups.com
FYI we have identified and fixed a recursion problem in GraphQL's delete operation for TopBraid 7.7.

Having said this, I wouldn't be surprised if other algorithms may still crash if you have very very long rdf:Lists.

Holger


<test_enum.ttl>

Now thinking more about this, do you mean rdf:Lists by any chance? Those would be blank nodes and may cause recursive delete problems.

If you cannot delete them in any other way, you could export the graph to a file, clear the graph and replace it with a hand-edited copy of the exported file. Or use the Source Code panel to delete the rdf:List.

Holger


-- 
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.

David Medinets

unread,
May 9, 2023, 5:56:42 PM5/9/23
to TopBraid Suite Users
Thanks! Glad to have helped in a small way.
Reply all
Reply to author
Forward
0 new messages