-
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
Current database instance is not active on current thread #5843
Comments
Hi, could you show us the code which you use for this task ? |
Aslo is it possible to get stack trace with line numbers ? |
Hi we are not authorized to share the code base. so we will create a sample code base and share it with you Thank you |
Sure,does not matter, I need test to reproduce it. |
HI, any updates ? |
Hi sorry for the delay. We found the issue, in the middle of our process we invoke orientdb etl. after completing the etl process the problem occurs. so after completing the etl process we had to activate the db instance on current thread. |
OK I will move, this issue to ETL team |
As far as I understand, you invoke ETL programmatically form java code, am I right? Then, after ETL invocation, you have to re-activate the db instance on current thread. Are you using ETL's parallel execution? Can you share the snippet of code where you use the ETL? |
no response for a while. Feel free to reopen issue if necessary |
Hi Team, We are trying to import a CSV as an edge using ETL. The CSV has ZipCode and Complain Id as its columns. The total records in the files are close to 650,000 All the other vertices and edges have been already created barring this edge which is loading at the rate to 1/2 vertices per second. and in between this painfully slow load, we get this intermittent error. below is out script. Can you please help us out on this? {
],
Sample CSV file is as follows: Complaint_ID,ZIP_code There are some cases of null records as well as null rows. The sample log entries while runing the aboev script is as follows: [cts429406@aster2 bin]$ ./oetl.sh has_ZipCode.json
Any help is appreciated.. Thanks in advance:) |
@saeedtabrizi this problem should be fixed on latest 2.2.x version did you try your case on this version ? |
Hi Saeed, INFO OrientDB Server is active v2.2.11 (build 2.2.x@r8b3a478e3ca7321a48e7cf0f5991569bbe06ed89; |
Hi @Laa , @shashankupadhye |
@shashankupadhye Hi! Could you please share the database directory file listing including file sizes after the NPE happened. |
Hi taburet, |
This issue occurred when executing multiple threads to get orient database connection from database pool and process them simultaneously. when processing two threads, in some point we faced following issue. (Orient db version 2.1.12)
java.lang.IllegalStateException: Current database instance (com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPolled@5791a654) is not active on current thread (Thread[MyScheduler_Worker-2,5,main]). Current active database is: com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx@6f4c3d00
The text was updated successfully, but these errors were encountered: