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

Test the new Task UI/UX with existing 2.7.x DB footprint #1676

Closed
sabbyanandan opened this issue Feb 26, 2021 · 4 comments
Closed

Test the new Task UI/UX with existing 2.7.x DB footprint #1676

sabbyanandan opened this issue Feb 26, 2021 · 4 comments
Assignees

Comments

@sabbyanandan
Copy link
Contributor

sabbyanandan commented Feb 26, 2021

The goal here is to make sure that any existing DB footprint (previously used database) continues to work just fine when upgrading to 3.1.x UI.

@cppwfs
Copy link
Contributor

cppwfs commented Mar 1, 2021

Issues Identfied:

@jvalkeal
Copy link
Contributor

jvalkeal commented Mar 2, 2021

Could you copy/paste old manifests here as I think we need to test from those manually.

@cppwfs
Copy link
Contributor

cppwfs commented Mar 2, 2021

From an empty database, execute the following from SCD-Shell against 2.7.1 dataflow server

#Maven
# Import Streams
app import --uri https://dataflow.spring.io/rabbitmq-maven-latest
# Import Tasks
app import --uri https://dataflow.spring.io/task-maven-latest
#Maven
# Import Streams
app import --uri https://dataflow.spring.io/rabbitmq-maven-latest
# Import Tasks
app import --uri https://dataflow.spring.io/task-maven-latest
#Create task a
task create ts0301a --definition "timestamp"
#create task b
task create ts0301b --definition "timestamp"
#launch task a with properties
task launch ts0301a --properties "app.timestamp.format=YYYYDD"
#Create CTR A
task create ctr0301a --definition "1: timestamp && 2:timestamp"
#Create CTR b
task create ctr0301b --definition "1: timestamp && 2:timestamp"
#launch CTR a
task launch ctr0301a --properties "app.ctr0301a.1.timestamp.format=YYYYDD"

The previous instruction produce:

{"taskDeploymentRequest":{"definition":{"name":"ts0301a","properties":{"management.metrics.tags.service":"task-application","timestamp.format":"YYYYDD","spring.datasource.username":"root","spring.datasource.url":"jdbc:mariadb://localhost:3306/task","spring.datasource.driverClassName":"org.mariadb.jdbc.Driver","management.metrics.tags.application":"${task.name:unknown}-${task.execution.id:unknown}","spring.cloud.task.name":"ts0301a","spring.datasource.password":"password"}},"resource":"maven://org.springframework.cloud.task.app:timestamp-task:jar:2.1.1.RELEASE","deploymentProperties":{"app.timestamp.format":"YYYYDD"},"commandlineArguments":["--spring.cloud.task.executionid=1"]},"platformName":"default"}
{"taskDeploymentRequest":{"definition":{"name":"ctr0301a","properties":{"management.metrics.tags.service":"task-application","spring.datasource.username":"root","spring.datasource.url":"jdbc:mariadb://localhost:3306/task","spring.datasource.driverClassName":"org.mariadb.jdbc.Driver","management.metrics.tags.application":"${task.name:unknown}-${task.execution.id:unknown}","platform-name":"default","spring.cloud.task.name":"ctr0301a","composed-task-properties":"app.ctr0301a-1.app.timestamp.timestamp.format=YYYYDD","graph":"ctr0301a-1   &&   ctr0301a-2","spring.datasource.password":"password"}},"resource":"maven://org.springframework.cloud:spring-cloud-dataflow-composed-task-runner:jar:2.7.1","deploymentProperties":{"app.composed-task-runner.composed-task-properties":"app.ctr0301a-1.app.timestamp.timestamp.format=YYYYDD"},"commandlineArguments":["--spring.cloud.task.executionid=2","--spring.cloud.data.flow.taskappname=composed-task-runner"]},"platformName":"default"}
{"taskDeploymentRequest":{"definition":{"name":"ctr0301a-1","properties":{"timestamp.format":"YYYYDD","management.metrics.tags.service":"task-application","spring.datasource.username":"root","spring.datasource.url":"jdbc:mariadb://localhost:3306/task","spring.datasource.driverClassName":"org.mariadb.jdbc.Driver","management.metrics.tags.application":"${task.name:unknown}-${task.execution.id:unknown}","spring.cloud.task.name":"ctr0301a-1","spring.datasource.password":"password"}},"resource":"maven://org.springframework.cloud.task.app:timestamp-task:jar:2.1.1.RELEASE","deploymentProperties":{"app.timestamp.timestamp.format":"YYYYDD"},"commandlineArguments":["--spring.cloud.task.parent-execution-id=2","--spring.cloud.task.executionid=3"]},"platformName":"default"}
{"taskDeploymentRequest":{"definition":{"name":"ctr0301a-2","properties":{"management.metrics.tags.service":"task-application","spring.datasource.username":"root","spring.datasource.url":"jdbc:mariadb://localhost:3306/task","spring.datasource.driverClassName":"org.mariadb.jdbc.Driver","management.metrics.tags.application":"${task.name:unknown}-${task.execution.id:unknown}","spring.cloud.task.name":"ctr0301a-2","spring.datasource.password":"password"}},"resource":"maven://org.springframework.cloud.task.app:timestamp-task:jar:2.1.1.RELEASE","deploymentProperties":{},"commandlineArguments":["--spring.cloud.task.parent-execution-id=2","--spring.cloud.task.executionid=4"]},"platformName":"default"}

@sabbyanandan
Copy link
Contributor Author

@cppwfs: it seems we are all good, are we OK with closing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants