You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SqlClientEventSource.Log.PoolerTraceEvent("<prov.DbConnectionInternal.DoNotPoolThisConnection|RES|INFO|CPOOL> {0}, Marking pooled object as non-poolable so it will be disposed",ObjectID);
252
+
SqlClientEventSource.Log.TryPoolerTraceEvent("<prov.DbConnectionInternal.DoNotPoolThisConnection|RES|INFO|CPOOL> {0}, Marking pooled object as non-poolable so it will be disposed",ObjectID);
253
253
}
254
254
255
255
/// <devdoc>Ensure that this connection cannot be put back into the pool.</devdoc>
throwADP.InternalError(ADP.InternalErrorCode.PushingObjectSecondTime);// pushing object onto stack a second time
384
384
}
385
385
386
-
SqlClientEventSource.Log.PoolerTraceEvent("<prov.DbConnectionInternal.PrePush|RES|CPOOL> {0}, Preparing to push into pool, owning connection {1}, pooledCount={2}",ObjectID,0,_pooledCount);
386
+
SqlClientEventSource.Log.TryPoolerTraceEvent("<prov.DbConnectionInternal.PrePush|RES|CPOOL> {0}, Preparing to push into pool, owning connection {1}, pooledCount={2}",ObjectID,0,_pooledCount);
387
387
_pooledCount++;
388
388
_owningObject.Target=null;// NOTE: doing this and checking for InternalError.PooledObjectHasOwner degrades the close by 2%
SqlClientEventSource.Log.PoolerTraceEvent("<prov.DbConnectionInternal.PostPop|RES|CPOOL> {0}, Preparing to pop from pool, owning connection {1}, pooledCount={2}",ObjectID,0,_pooledCount);
415
+
SqlClientEventSource.Log.TryPoolerTraceEvent("<prov.DbConnectionInternal.PostPop|RES|CPOOL> {0}, Preparing to pop from pool, owning connection {1}, pooledCount={2}",ObjectID,0,_pooledCount);
416
416
417
417
//3 // The following tests are retail assertions of things we can't allow to happen.
// connection creation failed on semaphore waiting or if max pool reached
130
130
if(connectionPool.IsRunning)
131
131
{
132
-
SqlClientEventSource.Log.TraceEvent("<prov.DbConnectionFactory.GetConnection|RES|CPOOL> {0}, GetConnection failed because a pool timeout occurred.",ObjectID);
132
+
SqlClientEventSource.Log.TryTraceEvent("<prov.DbConnectionFactory.GetConnection|RES|CPOOL> {0}, GetConnection failed because a pool timeout occurred.",ObjectID);
133
133
// If GetConnection failed while the pool is running, the pool timeout occurred.
SqlClientEventSource.Log.TraceEvent("<prov.DbConnectionFactory.GetConnection|RES|CPOOL> {0}, GetConnection failed because a pool timeout occurred and all retries were exhausted.",ObjectID);
150
+
SqlClientEventSource.Log.TryTraceEvent("<prov.DbConnectionFactory.GetConnection|RES|CPOOL> {0}, GetConnection failed because a pool timeout occurred and all retries were exhausted.",ObjectID);
0 commit comments