[
https://issues.apache.org/jira/browse/HDDS-17964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Andika updated HDDS-17964:
-------------------------------
Description:
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}}
was:
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}}
> 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
> Priority: Major
>
> 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]