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

Not more resources available in pool exception logged in Orient 1.6.4 plocal embedded database #2090

Closed
aruld opened this issue Mar 4, 2014 · 2 comments
Assignees
Milestone

Comments

@aruld
Copy link

aruld commented Mar 4, 2014

I am seeing this exception in standard out. This happens after a hot reload from our play application. It usually happens right after Play runs its jobs which uses Orient database after a hot reload. We do close database after use in our application.

20:50:07,358 ERROR ~ Not more resources available in pool. Requested resource: local:floifydb
com.orientechnologies.common.concur.lock.OLockException: Not more resources available in pool. Requested resource: local:orientdb
    at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:49)
    at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:93)
    at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:78)
    at com.orientechnologies.orient.core.db.ODatabasePoolBase.acquire(ODatabasePoolBase.java:121)
    at controllers.DatabaseExecutor.execute(DatabaseExecutor.java:13)
    at models.Orient.getBatchMailNotifications(Orient.java:6113)
    at jobs.BorrowerBatchMailNotifier.doJob(BorrowerBatchMailNotifier.java:46)
    at play.jobs.Job.doJobWithResult(Job.java:50)
    at play.jobs.Job.call(Job.java:146)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1325)
    at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:414)
    at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:45)
@dxxr
Copy link

dxxr commented Mar 6, 2014

See #1983

@andrii0lomakin
Copy link
Member

@dxxr thank you for help, was not able to reproduce it. will fix now.

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