Skip to content

Fix JSON serialization of QueryCompletedEvent#14604

Merged
electrum merged 2 commits intotrinodb:masterfrom
electrum:eventlistener
Oct 13, 2022
Merged

Fix JSON serialization of QueryCompletedEvent#14604
electrum merged 2 commits intotrinodb:masterfrom
electrum:eventlistener

Conversation

@electrum
Copy link
Copy Markdown
Member

@electrum electrum commented Oct 12, 2022

Description

This reverts a regression introduced in #14400

Release notes

(x) Release notes are required, with the following suggested text:

# Event listener
* Fix JSON serialization failure for `QueryCompletedEvent`. ({issue}`14604`)

Copy link
Copy Markdown
Member

@martint martint left a comment

Choose a reason for hiding this comment

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

Add the following text to the commit message:

Implementations of Count, Timing and Distribution are not in the SPI, and therefore
they are not visible to the json serializer. As a result, they cannot be embedded
in event listener objects. Doing so causes errors when attempting to log
query events.

This reverts commit a102324.

Implementations of Count, Timing and Distribution are not in the SPI,
and therefore they are not visible to the json serializer. As a
result, they cannot be embedded in event listener objects. Doing so
causes errors when attempting to log query events.
@findepi
Copy link
Copy Markdown
Member

findepi commented Oct 13, 2022

thanks for adding this explanation:

Implementations of Count, Timing and Distribution are not in the SPI,
and therefore they are not visible to the json serializer. As a
result, they cannot be embedded in event listener objects. Doing so
causes errors when attempting to log query events.

should there be a test for this?

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.

3 participants