Skip to content

Do recovery in smaller batches - #720

Open
gmokki wants to merge 2 commits into
masterfrom
fix-sqlserver-large-recovery
Open

Do recovery in smaller batches#720
gmokki wants to merge 2 commits into
masterfrom
fix-sqlserver-large-recovery

Do recovery in smaller batches

0c0c58c
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
GitHub Actions / Integration Test Report for Java 25 and postgresql failed Jun 8, 2026 in 0s

127 tests run, 7 skipped, 1 failed.

Annotations

Check failure on line 71 in nflow-tests/src/test/java/io/nflow/tests/dao/BulkRecoveryDaoTest.java

See this annotation in the file changed.

@github-actions github-actions / Integration Test Report for Java 25 and postgresql

BulkRecoveryDaoTest.insertNineThousandDeadExecutorsAndOneWorkflow

Server-side WARN/ERROR during test:
WARN io.nflow.engine.internal.storage.db.DatabaseInitializer - Failed to create the database, possibly already created: Failed to execute SQL script statement #1 of class path resource [scripts/db/postgresql.create.ddl.sql]: create type workflow_status as enum ('created', 'executing', 'inProgress', 'finished', 'manual')
---
WARN org.eclipse.jetty.ee9.servlet.DefaultServlet - Deprecated resourceBase used instead of baseResource
Raw output
java.lang.AssertionError: 
Server-side WARN/ERROR during test:
WARN io.nflow.engine.internal.storage.db.DatabaseInitializer - Failed to create the database, possibly already created: Failed to execute SQL script statement #1 of class path resource [scripts/db/postgresql.create.ddl.sql]: create type workflow_status as enum ('created', 'executing', 'inProgress', 'finished', 'manual')
---
WARN org.eclipse.jetty.ee9.servlet.DefaultServlet - Deprecated resourceBase used instead of baseResource
	at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:134)
	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:102)
	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:111)
	at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1549)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:689)
	at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:966)
	at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:1010)
	at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:1020)
	at io.nflow.tests.dao.BulkRecoveryDaoTest.insertNineThousandDeadExecutorsAndOneWorkflow(BulkRecoveryDaoTest.java:71)
Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [insert into nflow_workflow (status, type, external_id, state, executor_id, executor_group, priority) values (?, ?, ?, ?, ?, ?, 0)]
	... 9 more
Caused by: org.postgresql.util.PSQLException: ERROR: column "status" is of type workflow_status but expression is of type character varying
  Hint: You will need to rewrite or cast the expression.
  Position: 110
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2904)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2589)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:431)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:534)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:437)
	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:196)
	at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:157)
	at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
	at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java)
	at org.springframework.jdbc.core.JdbcTemplate.lambda$update$0(JdbcTemplate.java:971)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:670)
	... 4 more