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

[fix][test] Fix TableViewBuilderImplTest NPE and infinite loop #22924

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Jun 17, 2024

Motivation

Running the test TableViewBuilderImplTest results in an NPE and infinite loop.

Modifications

Properly mock readNextAsync by returning an uncompleted CompletableFuture so that it doesn't cause an infinite loop.
Complete the CompletableFuture with AlreadyClosedException in test cleanup to properly close resources.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 3.4.0 milestone Jun 17, 2024
@lhotari lhotari self-assigned this Jun 17, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 17, 2024
Copy link
Member

@dao-jun dao-jun left a comment

Choose a reason for hiding this comment

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

lgtm

@lhotari lhotari merged commit 2dc0d96 into apache:master Jun 17, 2024
50 of 54 checks passed
lhotari added a commit that referenced this pull request Jun 19, 2024
lhotari added a commit that referenced this pull request Jun 19, 2024
lhotari added a commit that referenced this pull request Jun 19, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 21, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 24, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 25, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants