Ivan Andika created HDDS-17964:
----------------------------------
Summary: OFS snapshot iteration can skip entries
Key: HDDS-17964
URL: https://issues.apache.org/jira/browse/HDDS-17964
Project: Apache Ozone
Issue Type: Bug
Reporter: Ivan Andika
Assignee: Ivan Andika
Caused by HDDS-11696.
{code:java}
if (!statusList.isEmpty() && !startPath.isEmpty()) {
// Excluding the 1st file status element from list.
statusList.remove(0);
}{code}
The next snapshot page already excludes the previous snapshot, but
{{listFileStatus()}} drops its first entry anyway. If the final page contains
one snapshot, the iterator drops it and stops. The eager {{listStatus()}} path
already checks for a duplicate. The iterator should likewise drop the first
entry only if its path matches {{startPath}}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]