-
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
Add RemoteLogTracingEvent to allow tracing the event happen or not #21127
Conversation
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.
Looks good to me.
Only naming comments.
Also will you remove getRemoteDatabaseEvents
in follow-ups?
plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/RemoteLogTracingEvent.java
Outdated
Show resolved
Hide resolved
plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/RemoteLogTracingEvent.java
Outdated
Show resolved
Hide resolved
.ifPresent(remoteDatabaseEvent -> tracingEvents.forEach(tracingEvent -> tracingEvent.accept(remoteDatabaseEvent))); | ||
} | ||
|
||
private Optional<RemoteDatabaseEvent> buildEvent(OutputFrame outputFrame) |
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.
Is getRemoteDatabaseEvents
now safe to remove?
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.
There are multiple references of the getRemoteDatabaseEvents
, I think it's not so easy to remove the method directly.
Thanks for the review. |
Co-Authored-By: Ashhar Hasan <[email protected]>
Error: TestHiveRuntimeAdaptivePartitioningFaultTolerantExecutionJoinQueries.testInnerJoinWithEmptyProbeSide » Timeout testInnerJoinWithEmptyProbeSide() timed out after 120 seconds |
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.
@Praveen2112 / @kokosing do you want to take a look before I merge?
Description
Add RemoteTracingEvent to support check a database event(in log) happened or not without grab all logs from container at a time.
Update Postgresql testCancellation test to use RemoteTracingEvent.
Additional context and related issues
https://trinodb.slack.com/archives/CP1MUNEUX/p1710496005499909
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.