Anurag Parvatikar created HDDS-17828:
----------------------------------------

             Summary: Add cross client-version compatability tests
                 Key: HDDS-17828
                 URL: https://issues.apache.org/jira/browse/HDDS-17828
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Anurag Parvatikar
            Assignee: Anurag Parvatikar


 HDDS-17374 makes allocateBlock use the key's storage policy from the open key 
when an old client does not send storagePolicy. Today the fix is covered by 
unit tests and an integration test that simulates an old client by omitting the 
field.

Add an acceptance test in the xcompat suite that uses a real released client 
(for example 2.2.1):
 # A new client creates a WARM bucket.
 # The old client starts writing a key. The write pauses after the first block.
 # A new client changes the bucket policy to COLD.
 # The old client resumes and writes past the end of the first block, which 
triggers allocateBlock.
 # The write completes. Read the key back, then check its content and that 
every block is on DISK (WARM).

The existing xcompat tests run one command per client. This test needs:
 * An old-client writer that pauses and resumes, for example reading from a 
FIFO.
 * A smaller ozone.scm.block.size, so the second block triggers allocateBlock. 
This may need a separate cluster configuration.
 * A signal between the old-client and new-client containers, so the policy 
change happens at a fixed point. This needs changes in lib.sh.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to