adutra opened a new issue, #1484: URL: https://github.com/apache/polaris/issues/1484
### Describe the bug When running the getting started example with EclipseLink and Postgres from the current main branch, I got this: ``` 2025-04-28 15:58:08 [EL Severe]: ejb: 2025-04-28 18:58:08.005--ServerSession(1779008082)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 4.0.6.v202504090809-b9b1a3052f5ed8d3d838116c07fd4d6d6753df8b): org.eclipse.persistence.exceptions.DatabaseException 2025-04-28 15:58:08 Internal Exception: org.postgresql.util.PSQLException: The connection attempt failed. 2025-04-28 15:58:08 Error Code: 0 2025-04-28 15:58:08 2025-04-28 18:58:08,037 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper] [,POLARIS] [,,,] (executor-thread-1) Handling runtimeException Exception [EclipseLink-4002] (Eclipse Persistence Services - 4.0.6.v202504090809-b9b1a3052f5ed8d3d838116c07fd4d6d6753df8b): org.eclipse.persistence.exceptions.DatabaseException 2025-04-28 15:58:08 Internal Exception: org.postgresql.util.PSQLException: The connection attempt failed. 2025-04-28 15:58:08 Error Code: 0 2025-04-28 15:58:08 2025-04-28 18:58:08,055 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper] [,POLARIS] [,,,] (executor-thread-1) Full RuntimeException: jakarta.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 4.0.6.v202504090809-b9b1a3052f5ed8d3d838116c07fd4d6d6753df8b): org.eclipse.persistence.exceptions.DatabaseException 2025-04-28 15:58:08 Internal Exception: org.postgresql.util.PSQLException: The connection attempt failed. 2025-04-28 15:58:08 Error Code: 0 2025-04-28 15:58:08 at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:858) 2025-04-28 15:58:08 at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:226) 2025-04-28 15:58:08 at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:203) 2025-04-28 15:58:08 at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getDatabaseSession(EntityManagerFactoryImpl.java:534) 2025-04-28 15:58:08 at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:153) 2025-04-28 15:58:08 at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:191) 2025-04-28 15:58:08 at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:80) 2025-04-28 15:58:08 at org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkPersistenceUnit$FileSystemPolarisEclipseLinkPersistenceUnit.createEntityManagerFactory(PolarisEclipseLinkPersistenceUnit.java:107) 2025-04-28 15:58:08 at org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.lambda$createEntityManagerFactory$0(PolarisEclipseLinkMetaStoreSessionImpl.java:139) 2025-04-28 15:58:08 at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) 2025-04-28 15:58:08 at org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.createEntityManagerFactory(PolarisEclipseLinkMetaStoreSessionImpl.java:132) 2025-04-28 15:58:08 at org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.<init>(PolarisEclipseLinkMetaStoreSessionImpl.java:110) 2025-04-28 15:58:08 at org.apache.polaris.extension.persistence.impl.eclipselink.EclipseLinkPolarisMetaStoreManagerFactory.createMetaStoreSession(EclipseLinkPolarisMetaStoreManagerFactory.java:74) 2025-04-28 15:58:08 at org.apache.polaris.extension.persistence.impl.eclipselink.EclipseLinkPolarisMetaStoreManagerFactory.createMetaStoreSession(EclipseLinkPolarisMetaStoreManagerFactory.java:40) 2025-04-28 15:58:08 at org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.lambda$initializeForRealm$0(LocalPolarisMetaStoreManagerFactory.java:102) 2025-04-28 15:58:08 at org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.checkPolarisServiceBootstrappedForRealm(LocalPolarisMetaStoreManagerFactory.java:257) 2025-04-28 15:58:08 at org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.getOrCreateMetaStoreManager(LocalPolarisMetaStoreManagerFactory.java:158) 2025-04-28 15:58:08 at org.apache.polaris.extension.persistence.impl.eclipselink.EclipseLinkPolarisMetaStoreManagerFactory_ClientProxy.getOrCreateMetaStoreManager(Unknown Source) 2025-04-28 15:58:08 at org.apache.polaris.service.auth.JWTRSAKeyPairFactory.apply(JWTRSAKeyPairFactory.java:54) 2025-04-28 15:58:08 at org.apache.polaris.service.auth.JWTRSAKeyPairFactory.apply(JWTRSAKeyPairFactory.java:33) 2025-04-28 15:58:08 at org.apache.polaris.service.auth.JWTRSAKeyPairFactory_ClientProxy.apply(Unknown Source) 2025-04-28 15:58:08 at org.apache.polaris.service.auth.DefaultOAuth2ApiService.getToken(DefaultOAuth2ApiService.java:73) 2025-04-28 15:58:08 at org.apache.polaris.service.auth.DefaultOAuth2ApiService_ClientProxy.getToken(Unknown Source) 2025-04-28 15:58:08 at org.apache.polaris.service.catalog.api.IcebergRestOAuth2Api.getToken(IcebergRestOAuth2Api.java:117) 2025-04-28 15:58:08 at org.apache.polaris.service.catalog.api.IcebergRestOAuth2Api_Subclass.getToken$$superforward(Unknown Source) 2025-04-28 15:58:08 at org.apache.polaris.service.catalog.api.IcebergRestOAuth2Api_Subclass$$function$$1.apply(Unknown Source) 2025-04-28 15:58:08 at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:73) 2025-04-28 15:58:08 at io.quarkus.arc.impl.AroundInvokeInvocationContext$NextAroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:97) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.FaultToleranceInterceptor.lambda$syncFlow$8(FaultToleranceInterceptor.java:364) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.core.Future.from(Future.java:85) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.FaultToleranceInterceptor.lambda$syncFlow$9(FaultToleranceInterceptor.java:364) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.core.FaultToleranceContext.call(FaultToleranceContext.java:20) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.core.Invocation.apply(Invocation.java:29) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.core.metrics.MetricsCollector.apply(MetricsCollector.java:98) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.FaultToleranceInterceptor.syncFlow(FaultToleranceInterceptor.java:367) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.FaultToleranceInterceptor.intercept(FaultToleranceInterceptor.java:205) 2025-04-28 15:58:08 at io.smallrye.faulttolerance.FaultToleranceInterceptor_Bean.intercept(Unknown Source) 2025-04-28 15:58:08 at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:42) 2025-04-28 15:58:08 at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:70) 2025-04-28 15:58:08 at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:62) 2025-04-28 15:58:08 at io.quarkus.micrometer.runtime.MicrometerTimedInterceptor.timedMethod(MicrometerTimedInterceptor.java:79) 2025-04-28 15:58:08 at io.quarkus.micrometer.runtime.MicrometerTimedInterceptor_Bean.intercept(Unknown Source) 2025-04-28 15:58:08 at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:42) 2025-04-28 15:58:08 at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:30) 2025-04-28 15:58:08 at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:27) 2025-04-28 15:58:08 at org.apache.polaris.service.catalog.api.IcebergRestOAuth2Api_Subclass.getToken(Unknown Source) 2025-04-28 15:58:08 at org.apache.polaris.service.catalog.api.IcebergRestOAuth2Api$quarkusrestinvoker$getToken_f6dd65d68bbb7be8bc087c1c82d2d2a56984933f.invoke(Unknown Source) 2025-04-28 15:58:08 at org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:29) 2025-04-28 15:58:08 at io.quarkus.resteasy.reactive.server.runtime.QuarkusResteasyReactiveRequestContext.invokeHandler(QuarkusResteasyReactiveRequestContext.java:141) 2025-04-28 15:58:08 at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:147) 2025-04-28 15:58:08 at io.quarkus.vertx.core.runtime.VertxCoreRecorder$15.runWith(VertxCoreRecorder.java:638) 2025-04-28 15:58:08 at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675) 2025-04-28 15:58:08 at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654) 2025-04-28 15:58:08 at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627) 2025-04-28 15:58:08 at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594) 2025-04-28 15:58:08 at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:11) 2025-04-28 15:58:08 at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:11) 2025-04-28 15:58:08 at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) 2025-04-28 15:58:08 at java.base/java.lang.Thread.run(Thread.java:1583) 2025-04-28 15:58:08 Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 4.0.6.v202504090809-b9b1a3052f5ed8d3d838116c07fd4d6d6753df8b): org.eclipse.persistence.exceptions.DatabaseException 2025-04-28 15:58:08 Internal Exception: org.postgresql.util.PSQLException: The connection attempt failed. 2025-04-28 15:58:08 Error Code: 0 2025-04-28 15:58:08 at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:334) 2025-04-28 15:58:08 at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:329) 2025-04-28 15:58:08 at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:113) 2025-04-28 15:58:08 at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:174) 2025-04-28 15:58:08 at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.setOrDetectDatasource(DatabaseSessionImpl.java:226) 2025-04-28 15:58:08 at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:809) 2025-04-28 15:58:08 at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:259) 2025-04-28 15:58:08 at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:770) 2025-04-28 15:58:08 ... 58 more 2025-04-28 15:58:08 Caused by: org.postgresql.util.PSQLException: The connection attempt failed. 2025-04-28 15:58:08 at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:364) 2025-04-28 15:58:08 at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54) 2025-04-28 15:58:08 at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:273) 2025-04-28 15:58:08 at org.postgresql.Driver.makeConnection(Driver.java:446) 2025-04-28 15:58:08 at org.postgresql.Driver.connect(Driver.java:298) 2025-04-28 15:58:08 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683) 2025-04-28 15:58:08 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:191) 2025-04-28 15:58:08 at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:102) 2025-04-28 15:58:08 ... 63 more 2025-04-28 15:58:08 Caused by: java.net.UnknownHostException: postgres 2025-04-28 15:58:08 at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567) 2025-04-28 15:58:08 at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) 2025-04-28 15:58:08 at java.base/java.net.Socket.connect(Socket.java:751) 2025-04-28 15:58:08 at org.postgresql.core.PGStream.createSocket(PGStream.java:260) 2025-04-28 15:58:08 at org.postgresql.core.PGStream.<init>(PGStream.java:121) 2025-04-28 15:58:08 at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:140) 2025-04-28 15:58:08 at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:268) 2025-04-28 15:58:08 ... 70 more ``` ### To Reproduce 1. Checkout main @ a84b5c4a 2. Build a Polaris Docker image as described in `getting-started/eclipselink/README.md` 3. Run the docker-compose example under `getting-started/eclipselink` ### Actual Behavior _No response_ ### Expected Behavior _No response_ ### Additional context _No response_ ### System information _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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
