Skip to content

fix: replace removed RunContext#stateStore() with the namespace KV store - #785

Merged
Malaydewangan09 merged 2 commits into
mainfrom
fix/replace-statestore-with-kv
Aug 27, 2026
Merged

fix: replace removed RunContext#stateStore() with the namespace KV store#785
Malaydewangan09 merged 2 commits into
mainfrom
fix/replace-statestore-with-kv

Conversation

@Malaydewangan09

@Malaydewangan09 Malaydewangan09 commented Aug 27, 2026

Copy link
Copy Markdown
Member

RunContext#stateStore() is removed in 2.0, breaking the compat CI compile for healthlake/Trigger and msk/Trigger. Both now keep dedup state in runContext.namespaceKv(), keyed by namespace, flow id and trigger id. Follows #706, statestore change only.

kestraVersion stays at 1.3.19: the KV API used here already exists there, so this compiles against both 1.3.x and 2.0.

@loicmathieu on reusing existing state: there is none. StateStore wrote to internal storage, KV writes to the KV store, no shared keys. Impact is one re-fire per trigger on the first poll after upgrade, then it self-corrects. Can add a read-old-write-new shim if you want zero re-fires.

msk.TriggerTest and healthlake.TriggerTest pass.

RunContext#stateStore() is deprecated in Kestra 1.3 and removed in 2.0, so
the compatibility CI job fails to compile the healthlake and msk triggers.

Move both triggers' dedup state to runContext.namespaceKv(), keyed by
namespace, flow id and trigger id. The whole KV API used here
(namespaceKv, KVMetadata, KVValueAndMetadata, getValue, put, delete) is
already present in 1.3.19, so kestraVersion stays unchanged and the plugin
still compiles against both 1.3.x and 2.0.

Follows the implementation reviewed in #706, statestore change only.
@github-project-automation github-project-automation Bot moved this to To review in Pull Requests Aug 27, 2026
@Malaydewangan09 Malaydewangan09 self-assigned this Aug 27, 2026
@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

📦 Artifacts

Name Size Updated Expiration
jar 68.61 MB Aug 27, 26, 7:51:52 AM UTC Sep 3, 26, 7:51:49 AM UTC

🛡 Trivy

Vulnerability in: Java

Vulnerability Severity Package Installed Version Fixed Version
CVE-2026-42583 HIGH io.netty:netty-codec-compression 4.2.12.Final 4.2.13.Final
CVE-2026-59901 HIGH io.netty:netty-codec-compression 4.2.12.Final 4.2.16.Final
CVE-2026-42584 HIGH io.netty:netty-codec-http 4.2.12.Final 4.2.13.Final, 4.1.133.Final
CVE-2026-42587 HIGH io.netty:netty-codec-http 4.2.12.Final 4.2.13.Final, 4.1.133.Final
CVE-2026-55831 HIGH io.netty:netty-codec-http 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-55833 HIGH io.netty:netty-codec-http 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-56745 HIGH io.netty:netty-codec-http 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-41417 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.1.133.Final, 4.2.13.Final
CVE-2026-42580 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.13.Final, 4.1.133.Final
CVE-2026-42581 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.13.Final, 4.1.133.Final
CVE-2026-42585 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.13.Final, 4.1.133.Final
CVE-2026-50020 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.15.Final, 4.1.135.Final
CVE-2026-56746 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-59898 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-59899 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-59903 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.17.Final, 4.1.137.Final
CVE-2026-59921 MEDIUM io.netty:netty-codec-http 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-42587 HIGH io.netty:netty-codec-http2 4.2.12.Final 4.2.13.Final, 4.1.133.Final
CVE-2026-56819 HIGH io.netty:netty-codec-http2 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-47244 MEDIUM io.netty:netty-codec-http2 4.2.12.Final 4.2.15.Final, 4.1.135.Final
CVE-2026-48043 MEDIUM io.netty:netty-codec-http2 4.2.12.Final 4.1.135.Final, 4.2.15.Final
CVE-2026-50560 MEDIUM io.netty:netty-codec-http2 4.2.12.Final 4.2.15.Final, 4.1.135.Final
CVE-2026-59900 MEDIUM io.netty:netty-codec-http2 4.2.12.Final 4.2.16.Final, 4.1.136.Final
CVE-2026-44249 HIGH io.netty:netty-handler 4.2.12.Final 4.2.15.Final, 4.1.135.Final
CVE-2026-45416 HIGH io.netty:netty-handler 4.2.12.Final 4.2.15.Final, 4.1.135.Final
CVE-2026-50010 HIGH io.netty:netty-handler 4.2.12.Final 4.2.15.Final, 4.1.135.Final
CVE-2026-42577 HIGH io.netty:netty-transport-classes-epoll 4.2.12.Final 4.2.13.Final

🧪 Java Unit Tests

TestsPassed ✅Skipped ⚠️FailedTime ⏱
Java Tests Report169 ran167 ✅2 ⚠️0 ❌4m 18s 493ms

🔁 Unreleased Commits

8 commits since v2.8.2

SHA Title Author Date
953d4ce Documentation review: plugin-aws (#776) AJ Emerich Aug 4, 26, 4:22:43 PM UTC
ec765b2 chore(deps): bump com.github.ben-manes.versions from 0.54.0 to 0.56.0 dependabot[bot] Aug 1, 26, 1:22:39 AM UTC
ff8dd7f chore(deps): bump io.floci:testcontainers-floci from 2.12.0 to 2.13.0 dependabot[bot] Aug 1, 26, 1:22:34 AM UTC
0210186 chore(deps): update all common deps Ludovic DEHON Aug 8, 26, 11:04:28 PM UTC
663a965 chore(deps): remove unused agent on allure Ludovic DEHON Aug 11, 26, 9:44:07 PM UTC
0f94d05 fix(s3): render moveTo.key so dynamic destination paths resolve (#783) Malay Dewangan Aug 27, 26, 7:28:39 AM UTC
9a0f6ec chore(deps): bump io.floci:testcontainers-floci from 2.13.0 to 2.14.0 dependabot[bot] Aug 22, 26, 1:22:49 AM UTC
cdb7855 chore(deps): bump com.github.ben-manes.versions from 0.60.0 to 0.61.0 dependabot[bot] Aug 15, 26, 1:22:29 AM UTC

@github-actions

Copy link
Copy Markdown
Contributor

Tests report quick summary:

success ✅ > tests: 169, success: 167, skipped: 2, failed: 0

unfold for details
Project Status Success Skipped Failed
plugin-aws success ✅ 167 2 0

@Malaydewangan09
Malaydewangan09 merged commit a62e641 into main Aug 27, 2026
9 checks passed
@Malaydewangan09
Malaydewangan09 deleted the fix/replace-statestore-with-kv branch August 27, 2026 08:01
@github-project-automation github-project-automation Bot moved this from To review to Done in Pull Requests Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants