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

Stopping a batch with Spring Boot 3/Spring Batch 5 doesn't work properly. #5520

Closed
khaeghar opened this issue Oct 19, 2023 · 5 comments
Closed
Assignees
Labels
type/bug Is a bug report
Milestone

Comments

@khaeghar
Copy link

Description:
When using the STOP function of SCDF, the SCDF fails with the following message:

2023-10-19 09:25:33.460 INFO [http-nio-8081-exec-6] [org.springframework.cloud.dataflow.server.service.impl.DefaultTaskJobService] getJobExecution:59:boot3
2023-10-19 09:25:48.931 WARN [http-nio-8081-exec-1] [org.springframework.cloud.dataflow.configuration.metadata.BootApplicationConfigurationMetadataResolver] Failed to retrieve properties for resource Docker Resource [docker:.../.../apabatch:] because of ContainerRegistryException: Could not find an Registry Configuration for: registry.san.dev.weu.azure.paas.cloudcenter.corp
2023-10-19 09:25:48.931 WARN [http-nio-8081-exec-1] [org.springframework.cloud.dataflow.configuration.metadata.BootApplicationConfigurationMetadataResolver] Failed to retrieve port names for resource Docker Resource [docker:.../.../apabatch] because of ContainerRegistryException: Could not find an Registry Configuration for: registry.san.dev.weu.azure.paas.cloudcenter.corp
2023-10-19 09:25:48.932 WARN [http-nio-8081-exec-1] [org.springframework.cloud.dataflow.configuration.metadata.BootApplicationConfigurationMetadataResolver] Failed to retrieve port names for resource Docker Resource [docker:.../.../apabatch] because of ContainerRegistryException: Could not find an Registry Configuration for: registry.san.dev.weu.azure.paas.cloudcenter.corp
2023-10-19 09:25:48.941 ERROR [http-nio-8081-exec-3] [org.springframework.cloud.dataflow.server.controller.RestControllerAdvice] Caught exception while handling a request
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT JOB_EXECUTION_ID, KEY_NAME, TYPE_CD, STRING_VAL, DATE_VAL, LONG_VAL, DOUBLE_VAL, IDENTIFYING from BOOT3_BATCH_JOB_EXECUTION_PARAMS where JOB_EXECUTION_ID = ?]; nested exception is org.postgresql.util.PSQLException: ERROR: column "key_name" does not exist
Position: 26
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:101)

Release versions:
SCDF 2.11

Custom apps:

Steps to reproduce:

  1. Execute a Job
  2. Try to stop it with SCDF
@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Oct 19, 2023
@corneil corneil added type/bug Is a bug report and removed status/need-triage Team needs to triage and take a first look labels Oct 23, 2023
@cppwfs cppwfs added this to the 2.11.2 milestone Oct 31, 2023
@cppwfs
Copy link
Contributor

cppwfs commented Nov 16, 2023

Using the SCDF Local deployer with a Postgresql, I was unable to reproduce this issue. Can you share:

  • Postgres version
  • Deployer (Kubernetes, CF, Local)

@cppwfs cppwfs added status/need-feedback Calling participant to provide feedback and removed type/bug Is a bug report labels Nov 16, 2023
@cppwfs
Copy link
Contributor

cppwfs commented Nov 16, 2023

I was able to reproduce!

@cppwfs cppwfs added type/bug Is a bug report and removed status/need-feedback Calling participant to provide feedback labels Nov 16, 2023
@corneil
Copy link
Contributor

corneil commented Dec 4, 2023

Looks like the query is batch 4 job parameters schema against batch 5 table.

@cppwfs
Copy link
Contributor

cppwfs commented Dec 4, 2023

Correct:
Here is the PR to resolve it. I forgot to link the issue to the PR when I created the PR. #5581

@cppwfs
Copy link
Contributor

cppwfs commented Dec 20, 2023

Closed via #5581

@cppwfs cppwfs closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Is a bug report
Projects
None yet
Development

No branches or pull requests

3 participants