HarshMehta112 opened a new pull request, #9224:
URL: https://github.com/apache/gravitino/pull/9224
Fixed #9142
## Fix `getNextPage()` to Return `null` After Completion
This PR ensures that `SystemTablePageSource#getNextPage()` returns the page
only once and returns `null` on subsequent calls.
### What was wrong?
`getNextPage()` could return the page multiple times instead of only on the
first call, as shown by the unit test.
### What’s changed?
```java
@Override
public Page getNextPage() {
if (isFinished) {
return null;
}
isFinished = true;
return page;
}
--
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]