You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "danhuawang (via GitHub)" <gi...@apache.org> on 2026/01/27 07:44:06 UTC

[I] [Bug report] Set Owner failed occasionally due to NoSuchEntityException: No such schema entity: auth_hive_schema1 [gravitino]

danhuawang opened a new issue, #9809:
URL: https://github.com/apache/gravitino/issues/9809

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   ```
   {
       "code": 1003,
       "type": "NotFoundException",
       "message": "Failed to operate table(s) [f] operation [CREATE] under schema [auth_hive_schema1], reason [Metadata object catalog_hive.auth_hive_schema1.f or owner anonymous is not found]",
       "stack": [
           "org.apache.gravitino.exceptions.NotFoundException: Metadata object catalog_hive.auth_hive_schema1.f or owner anonymous is not found",
           "\tat org.apache.gravitino.authorization.OwnerManager.setOwner(OwnerManager.java:128)",
           "\tat org.apache.gravitino.authorization.OwnerEventManager.setOwner(OwnerEventManager.java:62)",
           "\tat org.apache.gravitino.hook.TableHookDispatcher.createTable(TableHookDispatcher.java:84)",
           "\tat org.apache.gravitino.catalog.TableNormalizeDispatcher.createTable(TableNormalizeDispatcher.java:78)",
           "\tat org.apache.gravitino.listener.TableEventDispatcher.createTable(TableEventDispatcher.java:136)",
           "\tat org.apache.gravitino.server.web.rest.TableOperations.lambda$createTable$1(TableOperations.java:142)",
           "\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:44)",
           "\tat org.apache.gravitino.server.web.Utils.doAs(Utils.java:202)",
           "\tat org.apache.gravitino.server.web.rest.TableOperations.createTable(TableOperations.java:134)",
           "\tat org.apache.gravitino.server.web.rest.TableOperations_$$_jvst862_8._d3createTable(TableOperations_$$_jvst862_8.java)",
           "\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:569)",
           "\tat org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)",
           "\tat org.jvnet.hk2.internal.MethodInterceptorHandler$MethodInvocationImpl.proceed(MethodInterceptorHandler.java:164)",
           "\tat org.apache.gravitino.server.web.filter.GravitinoInterceptionService$MetadataAuthorizationMethodInterceptor.invoke(GravitinoInterceptionService.java:206)",
           "\tat org.jvnet.hk2.internal.MethodInterceptorHandler.invoke(MethodInterceptorHandler.java:97)",
           "\tat org.apache.gravitino.server.web.rest.TableOperations_$$_jvst862_8.createTable(TableOperations_$$_jvst862_8.java)",
           "\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:569)",
           "\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.lambda$doFilter$0(AuthenticationFilter.java:89)",
           "\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:44)",
           "\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:840)",
           "Caused by: org.apache.gravitino.exceptions.NoSuchEntityException: No such schema entity: auth_hive_schema1",
           "\tat org.apache.gravitino.storage.relational.service.SchemaMetaService.getSchemaIdByMetalakeNameAndCatalogNameAndSchemaName_aroundBody2(SchemaMetaService.java:110)",
           "\tat org.apache.gravitino.storage.relational.service.SchemaMetaService.getSchemaIdByMetalakeNameAndCatalogNameAndSchemaName_aroundBody3$advice(SchemaMetaService.java:73)",
           "\tat org.apache.gravitino.storage.relational.service.SchemaMetaService.getSchemaIdByMetalakeNameAndCatalogNameAndSchemaName(SchemaMetaService.java:1)",
           "\tat org.apache.gravitino.storage.relational.RelationalEntityStoreIdResolver.getEntityIdsRequiringSchemaIds(RelationalEntityStoreIdResolver.java:170)",
           "\tat org.apache.gravitino.storage.relational.RelationalEntityStoreIdResolver.getEntityId(RelationalEntityStoreIdResolver.java:104)",
           "\tat org.apache.gravitino.cache.CachedEntityIdResolver.lambda$getEntityId$3(CachedEntityIdResolver.java:62)",
           "\tat java.base/java.util.Optional.orElseGet(Optional.java:364)",
           "\tat org.apache.gravitino.cache.CachedEntityIdResolver.getEntityId(CachedEntityIdResolver.java:62)",
           "\tat org.apache.gravitino.storage.relational.service.EntityIdService.getEntityId(EntityIdService.java:43)",
           "\tat org.apache.gravitino.storage.relational.service.OwnerMetaService.setOwner_aroundBody2(OwnerMetaService.java:92)",
           "\tat org.apache.gravitino.storage.relational.service.OwnerMetaService.setOwner_aroundBody3$advice(OwnerMetaService.java:73)",
           "\tat org.apache.gravitino.storage.relational.service.OwnerMetaService.setOwner(OwnerMetaService.java:1)",
           "\tat org.apache.gravitino.storage.relational.JDBCBackend.insertRelation(JDBCBackend.java:596)",
           "\tat org.apache.gravitino.storage.relational.RelationalEntityStore.insertRelation(RelationalEntityStore.java:257)",
           "\tat org.apache.gravitino.authorization.OwnerManager.lambda$setOwner$0(OwnerManager.java:84)",
           "\tat org.apache.gravitino.lock.TreeLockUtils.doWithTreeLock(TreeLockUtils.java:49)",
           "\tat org.apache.gravitino.authorization.OwnerManager.setOwner(OwnerManager.java:78)",
           "\t... 90 more"
       ]
   }
   ```
   
   ### Error message and/or stacktrace
   
   N/A
   
   ### How to reproduce
   
   1. Create a table in the hive catalog through UI 
   
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Set Owner failed occasionally due to NoSuchEntityException: No such schema entity: auth_hive_schema1 [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi closed issue #9809: [Bug report] Set Owner failed occasionally due to  NoSuchEntityException: No such schema entity: auth_hive_schema1
URL: https://github.com/apache/gravitino/issues/9809


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Set Owner failed occasionally due to NoSuchEntityException: No such schema entity: auth_hive_schema1 [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on issue #9809:
URL: https://github.com/apache/gravitino/issues/9809#issuecomment-4588962036

   It's not convenient to reproduce. closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Set Owner failed occasionally due to NoSuchEntityException: No such schema entity: auth_hive_schema1 [gravitino]

Posted by "danhuawang (via GitHub)" <gi...@apache.org>.
danhuawang commented on issue #9809:
URL: https://github.com/apache/gravitino/issues/9809#issuecomment-3803620783

   @jerqi Could you help check this issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Set Owner failed occasionally due to NoSuchEntityException: No such schema entity: auth_hive_schema1 [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on issue #9809:
URL: https://github.com/apache/gravitino/issues/9809#issuecomment-3889828043

   I will check this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Set Owner failed occasionally due to NoSuchEntityException: No such schema entity: auth_hive_schema1 [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi closed issue #9809: [Bug report] Set Owner failed occasionally due to  NoSuchEntityException: No such schema entity: auth_hive_schema1
URL: https://github.com/apache/gravitino/issues/9809


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Set Owner failed occasionally due to NoSuchEntityException: No such schema entity: auth_hive_schema1 [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on issue #9809:
URL: https://github.com/apache/gravitino/issues/9809#issuecomment-4053979775

   @danhuawang I found that I don't fix this issue. I don't find the root cause. So I reopen the issue. I need the more server logs. If you encounter the same issue, you can give me more server logs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org