Failed to retrieve new set of identifiers

0
Dear Experts , We are getting the below issue after the new deployment can’t able to find out much information in forum  com.mendix.connectionbus.ConnectionBusRuntimeException: Failed to retrieve new set of identifiers at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.connectionbus.ConnectionBusRuntimeException: Failed to retrieve new set of identifiers at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:30) Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: Failed to retrieve new set of identifiers at com.mendix.connectionbus.IdentifierPoolImpl$IdentifierData$Reservations.retrieveReservation(IdentifierPool.scala:119) Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: Could not retrieve ids before timeout of 5000ms at com.mendix.connectionbus.MxObjectIdReserver.reserveIdsInThreadPool(MxObjectIdReserver.scala:99) Caused by: java.util.concurrent.TimeoutException: The operation time exceeded 5000ms.   Retrieval of some of the activity from the application taking more time , any idea how it can be resolved ???
asked
1 answers
4

When a new object is created, the Mendix runtime will assign a unique id to this object. This unique id is not generated at the moment that the object is created. Instead, the Mendix runtime creates a cache/buffer of ids and assigns them when needed. This buffering is done by retrieving a batch of new ids from the database when the buffer is running low.
 
The following error indicates that the Mendix runtime was not able to retrieve a new set of identifiers for the buffer from the database:

Failed to retrieve new set of identifiers

 
This is usually a result of other issues, most often database connection issues. For example, perhaps the app is reaching the limit you have for the maximum number of database connections, causing queries to be slow (as they need to wait for a connection). 

As a side note, for the ID reservation, we set the timeout ourselves to a default of 5000 ms. The relevant setting for that timeout is DataStorage.NewIdentifierMaxWaitTimeSo, if you'd want to, you could change that value, though it would likely be better to find out why the timeout occurs. 

answered