orientechnologies / orientdb

OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
https://orientdb.dev
Apache License 2.0
4.73k stars 869 forks source link

Deadlock at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:143) #7757

Closed hp1975 closed 3 years ago

hp1975 commented 6 years ago

OrientDB Version: <2.2.13>

Java Version: <1.8>

OS:

Expected behavior

OrientGraphFactory.getTx shoud return the graph

Actual behavior

OrientGraphFactory.getTx shoud return the graph but it's BLOCKED in this function

Steps to reproduce

"http-nio-9090-exec-133" - Thread t@70898 java.lang.Thread.State: WAITING at sun.misc.Unsafe.park(Native Method)

andrii0lomakin commented 6 years ago

@hp1975 why do you think that is a deadlock, could you send full thread dump as separate gist? Taking into account stack trace which you provided it is also possible that connections are not returned to the pool and pool is exhausted.

hp1975 commented 6 years ago

yes, it may be a pool problem, but threads in my application are blocked by this thread; the symtom looks a deadlock

andrii0lomakin commented 6 years ago

@hp1975 threads will be locked if connections are exhausted and not returned to the pool. Could you send a full thread dump as a gist?

hp1975 commented 6 years ago

I can only send the full dump into your email address, and cc my boss.

andrii0lomakin commented 6 years ago

@hp1975 I understand a.lomakin@orientdb.com