Skip to content
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

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

lzeiming
Copy link
Contributor

This helps to fix #7250

@cla-bot cla-bot bot added the cla-signed label Nov 12, 2021
@@ -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;
Copy link
Member

@kokosing kokosing Nov 13, 2021

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?

Copy link
Contributor Author

@lzeiming lzeiming Nov 15, 2021

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

@hashhar hashhar requested a review from Praveen2112 November 15, 2021 06:14
Copy link
Member

@Praveen2112 Praveen2112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits

KuduScannerIterator sends keep alive requests to ensure Kudu scanner does not time out
@Praveen2112 Praveen2112 merged commit 62ef342 into trinodb:master Nov 30, 2021
@Praveen2112
Copy link
Member

Merged. Thanks for fixing this.

@Praveen2112 Praveen2112 mentioned this pull request Nov 30, 2021
12 tasks
@github-actions github-actions bot added this to the 365 milestone Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Kudu java client bug: NonRecoverableException Scanner xx not found (it may have expired)
3 participants