Ethan Rose created HDDS-17487:
---------------------------------
Summary: Create unit test to automatically catch addition or
removal of OM and SCM Ratis requests
Key: HDDS-17487
URL: https://issues.apache.org/jira/browse/HDDS-17487
Project: Apache Ozone
Issue Type: Improvement
Components: test
Reporter: Ethan Rose
Assignee: Ethan Rose
With zero downtime upgrade, there is no prepare for upgrade step to flush all
transactions from the Ratis log to the state machine in the old version, and
clusters may run in mixed versions. This means addition or removal of requests
must be handled as incompatible changes.
Create a unit test that uses a "lockfile" approach to catch these types of
issues:
* The test maintains its own list of all SCM ratis request types
* The test fails if this list does not match the prod list:
** Requests in the test list only generate a failure message saying a request
was removed which is incompatible
** Requests in the prod list only generate a failure message saying they need
to be version gated and added to the allow list in this unit test
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]