[
https://issues.apache.org/jira/browse/CASSANDRA-14754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ZhaoYang updated CASSANDRA-14754:
---------------------------------
Test and Documentation Plan: CI:
[https://circleci.com/workflow-run/52fd4154-03d5-4c92-bc3f-1378bf490fc9]
Status: Patch Available (was: In Progress)
[patch|https://github.com/apache/cassandra/pull/480]:
* added verification to stream state transition:
** Disallow stream state to leave final state (eg. complete, failed)
** Disallow changing stream state to early state, eg. from {{streaming}} to
{{preparing}} will fail
* remove unused {{StreamSession}} from {{StreamMessage.Serializer.deserialize}}
> Add verification of state machine in StreamSession
> --------------------------------------------------
>
> Key: CASSANDRA-14754
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14754
> Project: Cassandra
> Issue Type: Task
> Components: Legacy/Streaming and Messaging
> Reporter: Jason Brown
> Assignee: ZhaoYang
> Priority: Normal
> Fix For: 4.0
>
>
> {{StreamSession}} contains an implicit state machine, but we have no
> verification of the safety of the transitions between states. For example, we
> have no checks to ensure we cannot leave the final states (COMPLETED, FAILED).
> I propose we add some program logic in {{StreamSession}}, tests, and
> documentation to ensure the correctness of the state transitions.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]