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

[Bug report] Sometimes api test failed because of java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S #6332

Open
danhuawang opened this issue Jan 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@danhuawang
Copy link
Contributor

Version

main branch

Describe what's wrong

Some connection exception as following:

URL: http://a7f136a585a21408099ed7ed24465d2a-1655892769.ap-northeast-1.elb.amazonaws.com:8090/api/metalakes/ml_tag/tags/star3

Status code: 500

Content Type: application/json

Request Headers
Accept=application/vnd.gravitino.v1+json
Authorization=Basic bW9sbHk6Z29vZDEyMw==
Content-Type=application/json
Response Headers
Date: Sat, 18 Jan 2025 12:26:18 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(9.4.51.v20230217)
Response Body
{
    "code": 1002,
    "type": "RuntimeException",
    "message": "Failed to operate object [star3] operation [GET] under [ml_tag], reason [Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S]",
    "stack": [
        "org.apache.ibatis.exceptions.PersistenceException: ",
        "### Error querying database.  Cause: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "### The error may exist in org/apache/gravitino/storage/relational/mapper/MetalakeMetaMapper.java (best guess)",
        "### The error may involve org.apache.gravitino.storage.relational.mapper.MetalakeMetaMapper.selectMetalakeMetaByName",
        "### The error occurred while executing a query",
        "### Cause: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "\tat org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)",
        "\tat org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)",
        "\tat org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)",
        "\tat org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)",
        "\tat jdk.proxy2/jdk.proxy2.$Proxy68.selectMetalakeMetaByName(Unknown Source)",
        "\tat org.apache.gravitino.storage.relational.service.MetalakeMetaService.lambda$getMetalakeByIdentifier$1(MetalakeMetaService.java:97)",
        "\tat org.apache.gravitino.storage.relational.utils.SessionUtils.getWithoutCommit(SessionUtils.java:122)",
        "\tat org.apache.gravitino.storage.relational.service.MetalakeMetaService.getMetalakeByIdentifier(MetalakeMetaService.java:96)",
        "\tat org.apache.gravitino.storage.relational.JDBCBackend.get(JDBCBackend.java:218)",
        "\tat org.apache.gravitino.storage.relational.RelationalEntityStore.get(RelationalEntityStore.java:118)",
        "\tat org.apache.gravitino.metalake.MetalakeManager.metalakeInUse(MetalakeManager.java:102)",
        "\tat org.apache.gravitino.metalake.MetalakeManager.checkMetalake(MetalakeManager.java:84)",
        "\tat org.apache.gravitino.tag.TagManager.lambda$getTag$4(TagManager.java:145)",
        "\tat org.apache.gravitino.lock.TreeLockUtils.doWithTreeLock(TreeLockUtils.java:49)",
        "\tat org.apache.gravitino.tag.TagManager.getTag(TagManager.java:141)",
        "\tat org.apache.gravitino.listener.TagEventDispatcher.getTag(TagEventDispatcher.java:87)",
        "\tat org.apache.gravitino.server.web.rest.TagOperations.lambda$getTag$4(TagOperations.java:153)",
        "\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:712)",
        "\tat java.base/javax.security.auth.Subject.doAs(Subject.java:439)",
        "\tat org.apache.gravitino.utils.PrincipalUtils.doAs(PrincipalUtils.java:39)",
        "\tat org.apache.gravitino.server.web.Utils.doAs(Utils.java:188)",
        "\tat org.apache.gravitino.server.web.rest.TagOperations.getTag(TagOperations.java:150)",
        "\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
        "\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)",
        "\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)",
        "\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)",
        "\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:146)",
        "\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:189)",
        "\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)",
        "\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93)",
        "\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478)",
        "\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400)",
        "\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)",
        "\tat org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:256)",
        "\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)",
        "\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)",
        "\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)",
        "\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)",
        "\tat org.glassfish.jersey.internal.Errors.process(Errors.java:244)",
        "\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)",
        "\tat org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235)",
        "\tat org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:684)",
        "\tat org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394)",
        "\tat org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346)",
        "\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:358)",
        "\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:311)",
        "\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205)",
        "\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)",
        "\tat org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656)",
        "\tat org.apache.gravitino.server.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:86)",
        "\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)",
        "\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)",
        "\tat org.apache.gravitino.server.web.VersioningFilter.doFilter(VersioningFilter.java:111)",
        "\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)",
        "\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)",
        "\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)",
        "\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)",
        "\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)",
        "\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)",
        "\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)",
        "\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)",
        "\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)",
        "\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)",
        "\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)",
        "\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
        "\tat org.eclipse.jetty.server.Server.handle(Server.java:516)",
        "\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)",
        "\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)",
        "\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)",
        "\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)",
        "\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)",
        "\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)",
        "\tat org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)",
        "\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)",
        "\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)",
        "\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)",
        "\tat java.base/java.lang.Thread.run(Thread.java:833)",
        "Caused by: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "\tat org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:145)",
        "\tat org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:711)",
        "\tat org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:139)",
        "\tat org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:61)",
        "\tat org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337)",
        "\tat org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86)",
        "\tat org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)",
        "\tat org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)",
        "\tat org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)",
        "\tat org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)",
        "\tat org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)",
        "\t... 89 more",
        "Caused by: java.util.NoSuchElementException: Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "\tat org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:316)",
        "\tat org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:233)",
        "\tat org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:139)",
        "\t... 100 more"
    ]
}

Another the same error in associate tag api

Response
URL: http://a7f136a585a21408099ed7ed24465d2a-1655892769.ap-northeast-1.elb.amazonaws.com:8090/api/metalakes/ml_tag/tags/schema/f2.s2/

Status code: 500

Content Type: application/json

Request Headers
Accept=application/vnd.gravitino.v1+json
Authorization=Basic bW9sbHk6Z29vZDEyMw==
Content-Type=application/json
Content Body
{
    "tagsToAdd": [
        "moon1",
        "moon2",
        "moon3",
        "associateNotExistedTag"
    ],
    "tagsToRemove": [
        
    ]
}
Response Headers
Date: Sat, 18 Jan 2025 12:26:19 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(9.4.51.v20230217)
Response Body
{
    "code": 1002,
    "type": "RuntimeException",
    "message": "Failed to operate object operation [ASSOCIATE] under [f2.s2], reason [Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S]",
    "stack": [
        "org.apache.ibatis.exceptions.PersistenceException: ",
        "### Error querying database.  Cause: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "### The error may exist in org/apache/gravitino/storage/relational/mapper/MetalakeMetaMapper.java (best guess)",
        "### The error may involve org.apache.gravitino.storage.relational.mapper.MetalakeMetaMapper.selectMetalakeMetaByName",
        "### The error occurred while executing a query",
        "### Cause: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "\tat org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)",
        "\tat org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)",
        "\tat org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)",
        "\tat org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)",
        "\tat jdk.proxy2/jdk.proxy2.$Proxy68.selectMetalakeMetaByName(Unknown Source)",
        "\tat org.apache.gravitino.storage.relational.service.MetalakeMetaService.lambda$getMetalakeByIdentifier$1(MetalakeMetaService.java:97)",
        "\tat org.apache.gravitino.storage.relational.utils.SessionUtils.getWithoutCommit(SessionUtils.java:122)",
        "\tat org.apache.gravitino.storage.relational.service.MetalakeMetaService.getMetalakeByIdentifier(MetalakeMetaService.java:96)",
        "\tat org.apache.gravitino.storage.relational.JDBCBackend.get(JDBCBackend.java:218)",
        "\tat org.apache.gravitino.storage.relational.RelationalEntityStore.get(RelationalEntityStore.java:118)",
        "\tat org.apache.gravitino.metalake.MetalakeManager.metalakeInUse(MetalakeManager.java:102)",
        "\tat org.apache.gravitino.metalake.MetalakeManager.checkMetalake(MetalakeManager.java:84)",
        "\tat org.apache.gravitino.catalog.CatalogManager.checkCatalogInUse(CatalogManager.java:120)",
        "\tat org.apache.gravitino.catalog.OperationDispatcher.doWithCatalog(OperationDispatcher.java:96)",
        "\tat org.apache.gravitino.catalog.SchemaOperationDispatcher.internalLoadSchema(SchemaOperationDispatcher.java:373)",
        "\tat org.apache.gravitino.catalog.SchemaOperationDispatcher.lambda$loadSchema$6(SchemaOperationDispatcher.java:177)",
        "\tat org.apache.gravitino.lock.TreeLockUtils.doWithTreeLock(TreeLockUtils.java:49)",
        "\tat org.apache.gravitino.catalog.SchemaOperationDispatcher.loadSchema(SchemaOperationDispatcher.java:177)",
        "\tat org.apache.gravitino.connector.SupportsSchemas.schemaExists(SupportsSchemas.java:65)",
        "\tat org.apache.gravitino.hook.SchemaHookDispatcher.schemaExists(SchemaHookDispatcher.java:103)",
        "\tat org.apache.gravitino.catalog.SchemaNormalizeDispatcher.schemaExists(SchemaNormalizeDispatcher.java:58)",
        "\tat org.apache.gravitino.listener.SchemaEventDispatcher.schemaExists(SchemaEventDispatcher.java:89)",
        "\tat org.apache.gravitino.utils.MetadataObjectUtil.checkMetadataObject(MetadataObjectUtil.java:143)",
        "\tat org.apache.gravitino.tag.TagManager.associateTagsForMetadataObject(TagManager.java:302)",
        "\tat org.apache.gravitino.listener.TagEventDispatcher.associateTagsForMetadataObject(TagEventDispatcher.java:185)",
        "\tat org.apache.gravitino.server.web.rest.MetadataObjectTagOperations.lambda$associateTagsForObject$9(MetadataObjectTagOperations.java:243)",
        "\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:712)",
        "\tat java.base/javax.security.auth.Subject.doAs(Subject.java:439)",
        "\tat org.apache.gravitino.utils.PrincipalUtils.doAs(PrincipalUtils.java:39)",
        "\tat org.apache.gravitino.server.web.Utils.doAs(Utils.java:188)",
        "\tat org.apache.gravitino.server.web.rest.MetadataObjectTagOperations.associateTagsForObject(MetadataObjectTagOperations.java:235)",
        "\tat org.apache.gravitino.server.web.rest.TagOperations.associateTagsForObject(TagOperations.java:299)",
        "\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
        "\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)",
        "\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)",
        "\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)",
        "\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:146)",
        "\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:189)",
        "\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)",
        "\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93)",
        "\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478)",
        "\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400)",
        "\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)",
        "\tat org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:256)",
        "\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)",
        "\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)",
        "\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)",
        "\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)",
        "\tat org.glassfish.jersey.internal.Errors.process(Errors.java:244)",
        "\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)",
        "\tat org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235)",
        "\tat org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:684)",
        "\tat org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394)",
        "\tat org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346)",
        "\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:358)",
        "\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:311)",
        "\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205)",
        "\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)",
        "\tat org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656)",
        "\tat org.apache.gravitino.server.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:86)",
        "\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)",
        "\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)",
        "\tat org.apache.gravitino.server.web.VersioningFilter.doFilter(VersioningFilter.java:111)",
        "\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)",
        "\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)",
        "\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)",
        "\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)",
        "\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)",
        "\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)",
        "\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)",
        "\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)",
        "\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)",
        "\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)",
        "\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)",
        "\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)",
        "\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
        "\tat org.eclipse.jetty.server.Server.handle(Server.java:516)",
        "\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)",
        "\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)",
        "\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)",
        "\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)",
        "\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)",
        "\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)",
        "\tat org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)",
        "\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)",
        "\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)",
        "\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)",
        "\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)",
        "\tat java.base/java.lang.Thread.run(Thread.java:833)",
        "Caused by: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "\tat org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:145)",
        "\tat org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:711)",
        "\tat org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:139)",
        "\tat org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:61)",
        "\tat org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337)",
        "\tat org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86)",
        "\tat org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)",
        "\tat org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)",
        "\tat org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)",
        "\tat org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)",
        "\tat org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89)",
        "\tat org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)",
        "\t... 99 more",
        "Caused by: java.util.NoSuchElementException: Timeout waiting for idle object, borrowMaxWaitDuration=PT1S",
        "\tat org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:316)",
        "\tat org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:233)",
        "\tat org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:139)",
        "\t... 110 more"
    ]
}

Error message and/or stacktrace

see above

How to reproduce

Run tag api test cases on authentication enabled env.

Additional context

No response

@danhuawang danhuawang added the bug Something isn't working label Jan 20, 2025
@danhuawang
Copy link
Contributor Author

@yuqi1129 Can you help check this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant