peterxcli opened a new pull request, #8280:
URL: https://github.com/apache/ozone/pull/8280

   ## What changes were proposed in this pull request?
   
   Currently in SnapshotDiffReportOzone#fromProtobuf, 
SnapshotDiffReportProto#getToken when initializing SnapshotDiffReportOzone is 
called regardless whether the token is specified 
(SnapshotDiffReportProto#hasToken). This causes token to be an empty string due 
to the protobuf default value.
   
   If a client wants to list all the snapdiff entries and only check whether 
the token is not null as the termination condition, it will cause the snapdiff 
list to get stuck infinite loop. It's better to set the SnapshotDiffReportOzone 
token to null in SnapshotDiffReportOzone#fromProtobuf.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-12823
   
   ## How was this patch tested?
   
   CI:
   https://github.com/peterxcli/ozone/actions/runs/14439636390


-- 
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]

Reply via email to