Skip to content

Add an e2e test for the Java SDK task state store - #74403

Open
Andrushika wants to merge 1 commit into
apache:mainfrom
Andrushika:java-sdk-task-state-store-e2e
Open

Andrushika wants to merge 1 commit into
apache:mainfrom
Andrushika:java-sdk-task-state-store-e2e

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Why

#73464 added the task state store to the Java SDK with unit tests only. The Go SDK has an e2e test for the same API (go_sdk_tests/test_go_sdk_task_state.py). It runs a real task, reads the keys back through the REST API, and checks that [state_store] default_retention_days reaches the task process. Nothing checks this for Java yet, including that the coordinator passes the setting to the JVM.

What

Add a RoundtripTaskState task to java-test-bundle and a TestJavaSDKTaskStateStore class that follows the Go test. Java and Go modes now write the retention config through one helper, so the constant is renamed to LANG_SDK_STATE_STORE_RETENTION_DAYS. The retention test fails when the Java mode does not write the config (30 days instead of 7), and every test fails when the Java task throws before writing.

related: #73464, #73420


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines

The Java SDK task state store had unit tests only. Nothing checked
that a real Java task reaches the database through the supervisor, or
that the coordinator passes [state_store] default_retention_days to
the JVM. The Go SDK already has an e2e test for both.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant