This repository was archived by the owner on May 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 593
This repository was archived by the owner on May 14, 2025. It is now read-only.
Default version is always used to pick the table prefixes #5467
Copy link
Copy link
Closed
Milestone
Description
Main case
- Fresh SCDF 2.11.0 install
- Register task2 apps
task.timestamp=maven://io.spring:timestamp-task:2.0.2 task.timestamp.bootVersion=2 task.timestamp-batch=maven://io.spring:timestamp-batch-task:2.0.2 task.timestamp-batch.bootVersion=2 - Register task3 apps
task.timestamp=maven://io.spring:timestamp-task:3.0.0 task.timestamp.bootVersion=3 task.timestamp-batch=maven://io.spring:timestamp-batch-task:3.0.0 task.timestamp-batch.bootVersion=3 - Make task3 apps the default (manage versions view)
- Create simple timestamp task definition
timestampw/ name"taskOne" - Choose launch task
- In launch view, click the drop-down
Application Properties -> Versionand select the boot2 task version - Click "Launch Task"
💣 💥 In task execution view that is shown, notice the prefixes are all still BOOT3 eventhough we picked BOOT2.
THEORY: Default version is always used to pick the table prefixes. Another data point indicating the above theory is the following:
- Make task2 apps the default (manage versions view)
- Re-launch the task (choosing boot2 task version)
- In task execution view that is shown, notice the prefixes are all now BOOT2 as expected.
Symptom case
Switching version in task/stream deploy view does not update the table prefix properties (I believe this case is a symptom of the above).
- Make task3 apps the default (manage versions view)
- Create simple timestamp task definition
timestampw/ name"taskTwo" - Choose launch task
- In launch view, click the drop-down
Application Properties -> Versionand select the boot3 task version - Click "Launch Task"
- In task execution view that is shown, notice the prefixes are all BOOT3 as expected.
- Click "Relaunch Task"
- In launch view, click the drop-down
Application Properties -> Versionand select the boot2 task version
💣 💥 Notice the prefixes are all still BOOT3 eventhough we picked BOOT2.
Workaround
Use the "manage versions" view to pick the version that will be used. Never pick the version from the launch properties.