ivandika3 opened a new pull request, #12226:
URL: https://github.com/apache/ozone/pull/12226
## What changes were proposed in this pull request?
Generated-by: GPT 6.1 Terra
Previously OFS listStatus drops the first entry unconditionally.
```
if (!statusList.isEmpty() && !startPath.isEmpty()) {
// Excluding the 1st file status element from list.
statusList.remove(0);
}
```
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
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-17964
## How was this patch tested?
UT.
--
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]