Integrated: 8343946: JFR: Wildcard should only work with COUNT for 'jfr view'
Erik Gahlin
egahlin at openjdk.org
Tue Nov 12 15:38:29 UTC 2024
On Mon, 11 Nov 2024 17:22:58 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> Could I have a review of a PR that fixes a query validation bug for 'jfr view'?
>
> When '*' is used as a field name with an aggregator function, the implementation defaults to using the 'startTime' field, resulting in the field expression COUNT(startTime). Unfortunately, this behavior allows the aggregate function to bypass validation. This issue can be fixed by checking against the actual text rather than the field name.
>
> The lack of validation led to incorrect numbers being used for the 'Threads' column in the contention-by-address view.
>
> Testing: jdk/jdk/jfr and manual inspection.
>
> Thanks
> Erik
This pull request has now been integrated.
Changeset: e5eaa7f1
Author: Erik Gahlin <egahlin at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e5eaa7f1eb0cb072d02bc18e23b0daaee875b077
Stats: 3 lines in 2 files changed: 0 ins; 0 del; 3 mod
8343946: JFR: Wildcard should only work with COUNT for 'jfr view'
Reviewed-by: mgronlun
-------------
PR: https://git.openjdk.org/jdk/pull/22018
More information about the hotspot-jfr-dev
mailing list