-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix TestingTrinoServer connector event listener registration #13360
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,7 +78,7 @@ MaterializedResultWithEvents runQueryAndWaitForEvents(@Language("SQL") String sq | |
| } | ||
|
|
||
| QueryEvents queryEvents = eventsCollector.getQueryEvents(queryId); | ||
| queryEvents.waitForQueryCompletion(new Duration(30, SECONDS)); | ||
| queryEvents.waitForQueryCompletion(new Duration(3, SECONDS)); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How is that possible that longer timeout fixed the issue? If there was no event listener registered then it should not work at all? Are you referring here to a different problem? According #13321 it should be 30 seconds.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #13321 (comment) - no effect but considered an improvement. |
||
|
|
||
| // Sleep some more so extraneous, unexpected events can be recorded too. | ||
| // This is not rock solid but improves effectiveness on detecting duplicate events. | ||
|
|
||
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.
Do we need product tests to make sure that event listeners are truly registered?
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.
Server correctly registered EventListeners, TestingTrinoServer did not, so it only affected (some) tests