snazy commented on PR #438:
URL: https://github.com/apache/polaris/pull/438#issuecomment-2477311456

   Example failure:
   ```
   
   
   jakarta.persistence.PersistenceException: Exception [EclipseLink-4002] 
(Eclipse Persistence Services - 
4.0.4.v202407190748-059428cdd2583c46f1f3e50d235854840a6fa9a7): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column 
"MAINSECRETHASH" not found; SQL statement:
   SELECT PRINCIPALCLIENTID, MAINSECRET, MAINSECRETHASH, PRINCIPALID, 
SECONDARYSECRET, SECONDARYSECRETHASH, SECRETSALT, VERSION FROM 
PRINCIPAL_SECRETS WHERE (PRINCIPALCLIENTID = ?) [42122-232]
   Error Code: 42122
   Call: SELECT PRINCIPALCLIENTID, MAINSECRET, MAINSECRETHASH, PRINCIPALID, 
SECONDARYSECRET, SECONDARYSECRETHASH, SECRETSALT, VERSION FROM 
PRINCIPAL_SECRETS WHERE (PRINCIPALCLIENTID = ?)
        bind => [a7eb510c3b83c8b2]
   Query: ReadObjectQuery(referenceClass=ModelPrincipalSecrets sql="SELECT 
PRINCIPALCLIENTID, MAINSECRET, MAINSECRETHASH, PRINCIPALID, SECONDARYSECRET, 
SECONDARYSECRETHASH, SECRETSALT, VERSION FROM PRINCIPAL_SECRETS WHERE 
(PRINCIPALCLIENTID = ?)")
        at 
app//org.eclipse.persistence.internal.jpa.QueryImpl.getDetailedException(QueryImpl.java:392)
        at 
app//org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:265)
        at 
app//org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:475)
        at 
app//jakarta.persistence.TypedQuery.getResultStream(TypedQuery.java:87)
        at 
app//org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkStore.lookupPrincipalSecrets(PolarisEclipseLinkStore.java:422)
        at 
app//org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.generateNewPrincipalSecrets(PolarisEclipseLinkMetaStoreSessionImpl.java:658)
        at 
app//org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.createPrincipal(PolarisMetaStoreManagerImpl.java:959)
        at 
app//org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.bootstrapPolarisService(PolarisMetaStoreManagerImpl.java:668)
        at 
app//org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.lambda$bootstrapPolarisService$2(PolarisMetaStoreManagerImpl.java:706)
        at 
app//org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.runActionInTransaction(PolarisEclipseLinkMetaStoreSessionImpl.java:288)
        at 
app//org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.bootstrapPolarisService(PolarisMetaStoreManagerImpl.java:706)
        at 
app//org.apache.polaris.core.persistence.PolarisTestMetaStoreManager.<init>(PolarisTestMetaStoreManager.java:72)
        at 
app//org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreManagerTest.createPolarisTestMetaStoreManager(PolarisEclipseLinkMetaStoreManagerTest.java:67)
        at 
app//org.apache.polaris.core.persistence.BasePolarisMetaStoreManagerTest.setupPolariMetaStoreManager(BasePolarisMetaStoreManagerTest.java:72)
        at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
        at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
        at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
   Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 
4.0.4.v202407190748-059428cdd2583c46f1f3e50d235854840a6fa9a7): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column 
"MAINSECRETHASH" not found; SQL statement:
   SELECT PRINCIPALCLIENTID, MAINSECRET, MAINSECRETHASH, PRINCIPALID, 
SECONDARYSECRET, SECONDARYSECRETHASH, SECRETSALT, VERSION FROM 
PRINCIPAL_SECRETS WHERE (PRINCIPALCLIENTID = ?) [42122-232]
   Error Code: 42122
   Call: SELECT PRINCIPALCLIENTID, MAINSECRET, MAINSECRETHASH, PRINCIPALID, 
SECONDARYSECRET, SECONDARYSECRETHASH, SECRETSALT, VERSION FROM 
PRINCIPAL_SECRETS WHERE (PRINCIPALCLIENTID = ?)
        bind => [a7eb510c3b83c8b2]
   Query: ReadObjectQuery(referenceClass=ModelPrincipalSecrets sql="SELECT 
PRINCIPALCLIENTID, MAINSECRET, MAINSECRETHASH, PRINCIPALID, SECONDARYSECRET, 
SECONDARYSECRETHASH, SECRETSALT, VERSION FROM PRINCIPAL_SECRETS WHERE 
(PRINCIPALCLIENTID = ?)")
        at 
app//org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:343)
        at 
app//org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:702)
        at 
app//org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:569)
        at 
app//org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2048)
        at 
app//org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:311)
        at 
app//org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:280)
        at 
app//org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:266)
        at 
app//org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectOneRow(DatasourceCallQueryMechanism.java:813)
        at 
app//org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java:2912)
        at 
app//org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java:2865)
        at 
app//org.eclipse.persistence.queries.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:563)
        at 
app//org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1236)
        at 
app//org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:913)
        at 
app//org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1195)
        at 
app//org.eclipse.persistence.queries.ReadObjectQuery.execute(ReadObjectQuery.java:448)
        at 
app//org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1283)
        at 
app//org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:3028)
        at 
app//org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1841)
        at 
app//org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1823)
        at 
app//org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1788)
        at 
app//org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:263)
        ... 15 more
   Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "MAINSECRETHASH" 
not found; SQL statement:
   SELECT PRINCIPALCLIENTID, MAINSECRET, MAINSECRETHASH, PRINCIPALID, 
SECONDARYSECRET, SECONDARYSECRETHASH, SECRETSALT, VERSION FROM 
PRINCIPAL_SECRETS WHERE (PRINCIPALCLIENTID = ?) [42122-232]
        at 
app//org.h2.message.DbException.getJdbcSQLException(DbException.java:514)
        at 
app//org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
        at app//org.h2.message.DbException.get(DbException.java:223)
        at app//org.h2.message.DbException.get(DbException.java:199)
        at 
app//org.h2.expression.ExpressionColumn.getColumnException(ExpressionColumn.java:244)
        at 
app//org.h2.expression.ExpressionColumn.optimizeOther(ExpressionColumn.java:226)
        at 
app//org.h2.expression.ExpressionColumn.optimize(ExpressionColumn.java:213)
        at app//org.h2.command.query.Select.prepareExpressions(Select.java:1228)
        at app//org.h2.command.query.Query.prepare(Query.java:232)
        at app//org.h2.command.Parser.prepareCommand(Parser.java:489)
        at app//org.h2.engine.SessionLocal.prepareLocal(SessionLocal.java:645)
        at app//org.h2.engine.SessionLocal.prepareCommand(SessionLocal.java:561)
        at 
app//org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1164)
        at 
app//org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:93)
        at 
app//org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:315)
        at 
app//org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1750)
        at 
app//org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1697)
        at 
app//org.eclipse.persistence.internal.databaseaccess.DatabaseCall.prepareStatement(DatabaseCall.java:770)
        at 
app//org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:630)
        ... 34 more
   
   ```


-- 
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]

Reply via email to