aierate commented on PR #5535:
URL: https://github.com/apache/ozone/pull/5535#issuecomment-1803377466
> Thanks @aierate for the patch. Can you please explain how it was tested?
Is there any unit or integration test you could modify to verify the fix?
Thanks @adoroszlai .
Here are the results of my integration test when I set
```
<property>
<name>ozone.om.ratis.enable</name>
<value>false</value>
</property>
```
and perform
http://my.om.address:9874/dbCheckpoint
```
2023-11-09 12:03:30,409 [qtp70666339-235] INFO
org.apache.hadoop.hdds.utils.DBCheckpointServlet: R
eceived GET request to obtain DB checkpoint snapshot
2023-11-09 12:03:30,419 [qtp70666339-235] INFO
org.apache.hadoop.ozone.om.OMDBCheckpointServlet: C
ompaction pausing 1 started.
2023-11-09 12:03:30,461 [qtp70666339-235] INFO
org.apache.hadoop.hdds.utils.db.RDBCheckpointManage
r: Created checkpoint in rocksDB at
/home/hadoop-001/ozonedata/ozonetmp1/db.checkpoints/om.db_chec
kpoint_1699502610434 in 27 milliseconds
2023-11-09 12:03:30,484 [qtp70666339-235] INFO
org.apache.hadoop.hdds.utils.db.RDBCheckpointUtils:
Waited for 21 milliseconds for checkpoint directory
/home/hadoop-001/ozonedata/ozonetmp1/db.check
points/om.db_checkpoint_1699502610434 availability.
2023-11-09 12:03:30,484 [qtp70666339-235] INFO
org.apache.hadoop.ozone.om.OMDBCheckpointServlet: C
ompaction pausing 1 ended. Elapsed ms: 65
2023-11-09 12:03:30,521 [qtp70666339-235] INFO
org.apache.hadoop.hdds.utils.DBCheckpointServlet: Time taken to write the
checkpoint to response output stream: 36 milliseconds
2023-11-09 12:03:30,521 [qtp70666339-235] INFO
org.apache.hadoop.hdds.utils.DBCheckpointServlet: Excluded SST [] from the
latest checkpoint.
2023-11-09 12:03:30,526 [qtp70666339-235] INFO
org.apache.hadoop.hdds.utils.db.RocksDBCheckpoint: Cleaning up RocksDB
checkpoint at
/home/hadoop-001/ozonedata/ozonetmp1/db.checkpoints/om.db_checkpoint_1699502610434
2023-11-09 12:05:49,267 [qtp70666339-113] INFO
org.apache.hadoop.hdds.utils.DBCheckpointServlet: Received GET request to
obtain DB checkpoint snapshot
```
I will also submit the unit test code at the same time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]