Karn Kumar Singh created HDDS-11405:
---------------------------------------

             Summary: Ambiguous behaviour of the ozone fs -setrep command
                 Key: HDDS-11405
                 URL: https://issues.apache.org/jira/browse/HDDS-11405
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone CLI
            Reporter: Karn Kumar Singh


*Repro step:* 
 # Create a key of any size(including 0 bytes).
 # Set the replication using the 'ozone fs -setrep' command with a replication 
factor other than the default.

*Log:*
{code:java}
# ozone fs -setrep -w 5 ofs://ozone1/voltmp/buck
Replication 5 set: ofs://ozone1/voltmp/buck/key
Waiting for ofs://ozone1/voltmp/buck/key ... done
# ozone fs -stat '%r' ofs://ozone1/voltmp/buck
1
# ozone fs -stat '%r' ofs://ozone1/voltmp/buck/key
3{code}
The command gets executed instantly for the 0-byte key, but the command is 
stuck forever for the non-0-byte key.

*Log:* 
{code:java}
# ozone fs -du ofs://ozone1/voltmp/buck
0     0      ofs://ozone1/voltmp/buck/key
7190  21570  ofs://ozone1/voltmp/buck/key1
# ozone fs -setrep -w 5 ofs://ozone1/voltmp/buck
Replication 5 set: ofs://ozone1/voltmp/buck/key
Replication 5 set: ofs://ozone1/voltmp/buck/key1
Waiting for ofs://ozone1/voltmp/buck/key ... done
Waiting for ofs://ozone1/voltmp/buck/key1 .........................{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to