[JAVA-4336] UncategorizedMongoDbException Created: 08/Oct/21  Updated: 27/Oct/23  Resolved: 26/Oct/21

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Upendra Jha Assignee: Jeffrey Yemin
Resolution: Gone away Votes: 0
Labels: external-user
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hi There,

I am getting following error in (Spring boot version 2.3.9) logs I am using Spring data mongodb

"org.springframework.data.mongodb.UncategorizedMongoDbException: Interrupted acquiring a permit to retrieve an item from the pool ; nested exception is com.mongodb.MongoInterruptedException: Interrupted acquiring a permit to retrieve an item from the pool"

 

I was getting "com.mashape.unirest.http.exceptions.UnirestException: org.apache.http.impl.execchain.RequestAbortedException: Request aborted"

 

Could you please let me know what was the issue and how to fix it.

 

Thanks,

Upendra



 Comments   
Comment by PM Bot [ 26/Oct/21 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by Christoph Strobl [ 11/Oct/21 ]

As mentioned before this sounds like the server shutting down. I'm not aware of anything specific here in Spring Data MongoDB.

Comment by Jeffrey Yemin [ 08/Oct/21 ]

Hi jha.upendra@gmail.com,

We've seen this before. MongoInterruptedException is just a RuntimeException that the driver throws when it's waiting for something to happen, and that something throws a

{java.lang.InterruptedException}

. In this case what it's waiting for is a connection to become available in the connection pool.

{InterruptedException}

itself is only thrown, well, when some other thread interrupts the current one, typically by a call to Thread.interrupt. The driver itself never calls Thread.interrupt, so it must be happening somewhere in the application, either in your application code or, more likely, by Spring Boot itself. The most likely cause of that, I would think, is either if the server is shutting down, or if the application is hitting some globally configured request timeout.

cstrobl any other ideas on this?

Generated at Thu Feb 08 09:01:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.