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

Avoid throw AssertionError in ThrowingDriverContext #103888

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Jan 4, 2024

ThrowingDriverContext can bring down Elasticsearch instances as it throws AssertionError. An unreleased bug caused this class to throw AssertionError. This change replaces AssertionError with an assertion and an unsupported exception. I attempted to remove this class, but it requires additional effort to make ExpressionEvaluator.Factory Describable.

@dnhatn dnhatn added :Analytics/ES|QL AKA ESQL v8.12.0 auto-backport-and-merge Automatically create backport pull requests and merge when ready >non-issue labels Jan 4, 2024
@dnhatn dnhatn marked this pull request as ready for review January 4, 2024 06:29
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jan 4, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

LGTM!

public class ThrowingDriverContext extends DriverContext {
public ThrowingDriverContext() {
/**
* A driver context that doesn't support any interaction. Consider it as a place holder where we need a dummy driver context.
Copy link
Contributor

Choose a reason for hiding this comment

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

++ for the nice javadoc, thanks!

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

@dnhatn
Copy link
Member Author

dnhatn commented Jan 4, 2024

@alex-spies @ChrisHegarty Thanks for review.

@dnhatn dnhatn added the v8.11.4 label Jan 4, 2024
@dnhatn dnhatn merged commit 8defe24 into elastic:main Jan 4, 2024
15 checks passed
@dnhatn dnhatn deleted the throwing-driver branch January 4, 2024 16:05
@elasticsearchmachine
Copy link
Collaborator

elasticsearchmachine commented Jan 4, 2024

dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Jan 4, 2024
ThrowingDriverContext can bring down Elasticsearch instances as it
throws AssertionError. An unreleased bug caused this class to throw
AssertionError. This change replaces AssertionError with an assertion
and an unsupported exception. I attempted to remove this class, but it
requires additional effort to make ExpressionEvaluator.Factory
Describable.
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Jan 4, 2024
ThrowingDriverContext can bring down Elasticsearch instances as it
throws AssertionError. An unreleased bug caused this class to throw
AssertionError. This change replaces AssertionError with an assertion
and an unsupported exception. I attempted to remove this class, but it
requires additional effort to make ExpressionEvaluator.Factory
Describable.
@dnhatn dnhatn removed backport pending auto-backport-and-merge Automatically create backport pull requests and merge when ready labels Jan 4, 2024
elasticsearchmachine pushed a commit that referenced this pull request Jan 4, 2024
ThrowingDriverContext can bring down Elasticsearch instances as it
throws AssertionError. An unreleased bug caused this class to throw
AssertionError. This change replaces AssertionError with an assertion
and an unsupported exception. I attempted to remove this class, but it
requires additional effort to make ExpressionEvaluator.Factory
Describable.
elasticsearchmachine pushed a commit that referenced this pull request Jan 4, 2024
ThrowingDriverContext can bring down Elasticsearch instances as it
throws AssertionError. An unreleased bug caused this class to throw
AssertionError. This change replaces AssertionError with an assertion
and an unsupported exception. I attempted to remove this class, but it
requires additional effort to make ExpressionEvaluator.Factory
Describable.
jbaiera pushed a commit to jbaiera/elasticsearch that referenced this pull request Jan 10, 2024
ThrowingDriverContext can bring down Elasticsearch instances as it 
throws AssertionError. An unreleased bug caused this class to throw
AssertionError. This change replaces AssertionError with an assertion
and an unsupported exception. I attempted to remove this class, but it 
requires additional effort to make ExpressionEvaluator.Factory
Describable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.11.4 v8.12.0 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants