-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send keep alive requests to ensure Kudu scanner does not time out #9947
Conversation
@@ -58,7 +55,7 @@ | |||
private final List<Type> columnTypes; | |||
private final KuduTable table; | |||
private final Map<Integer, Integer> fieldMapping; | |||
private RowResultIterator nextRows; | |||
private KuduScannerIterator kuduScannerIterator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please try to explain to me how this change matches: Send keep alive requests to ensure Kudu scanner does not time out
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sending keep alive requests is implemted in KuduScannerIterator.
/**
* An iterator for the RowResults of a KuduScanner.
* Exhausting this iterator means that all of the rows from a KuduScanner have been read.
*
* This iterator also handles sending keep alive requests to ensure the scanner
* does not time out.
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class KuduScannerIterator implements Iterator<RowResult> {
plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduRecordCursor.java
Show resolved
Hide resolved
plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduRecordCursor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits
plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduRecordCursor.java
Show resolved
Hide resolved
plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduRecordCursor.java
Show resolved
Hide resolved
KuduScannerIterator sends keep alive requests to ensure Kudu scanner does not time out
Merged. Thanks for fixing this. |
This helps to fix #7250