justinmclean opened a new issue, #9142:
URL: https://github.com/apache/gravitino/issues/9142
### What would you like to be improved?
Here's a unit test to show the issue:
```
@Test
public void testSystemTablePageSourceReturnsPageOnlyOnce() {
Page page = new Page(0);
GravitinoSystemConnector.SystemTablePageSource pageSource =
new GravitinoSystemConnector.SystemTablePageSource(page);
assertFalse(pageSource.isFinished());
assertSame(page, pageSource.getNextPage());
assertTrue(pageSource.isFinished());
assertNull(pageSource.getNextPage());
}
```
### How should we improve?
Have getNextPage return null if it finishes
--
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]