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

CORE-17958 restrict flow mapper state keys from exceeding the 255 character limit in the state storage db #4977

Merged
merged 9 commits into from
Nov 2, 2023

Conversation

LWogan
Copy link
Contributor

@LWogan LWogan commented Oct 25, 2023

The cllient requestid string is combined with the vnode shorthash to make a key for flow mapper states records for start flow events. The flow mapper state is stored in the state storage which has a limit of 255 characters. vnode shorthash is 12 characters with an additional separator character added this adds to the max 255.

Previously the JSON string representation of the FlowKey object was stored as the key. This easily exceeds 255 characters as seen by the solutions team.

API PR: corda/corda-api#1316

@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Nov 1, 2023

Jenkins build for PR 4977 build 10

Build Successful:
Jar artifact version produced by this PR: 5.1.0.0-alpha-1698919901942
Helm chart version produced by this PR: 5.1.0-alpha.1698919901942
Helm chart pushed to: oci://corda-os-docker-dev.software.r3.com/helm-charts/pr-4977/corda

…flowkey-bug

# Conflicts:
#	components/flow/flow-rest-resource-service-impl/src/main/kotlin/net/corda/flow/rest/impl/v1/FlowRestResourceImpl.kt
Copy link
Contributor

@jujoramos jujoramos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LWogan LWogan merged commit 95520ff into release/os/5.1 Nov 2, 2023
4 checks passed
@LWogan LWogan deleted the CORE-17958/flowkey-bug branch November 2, 2023 14:48
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

Successfully merging this pull request may close these issues.

3 participants