exist icon indicating copy to clipboard operation
exist copied to clipboard

[bugfix] Sync Make unique query history keys for monex #5881

Open dizzzz opened this issue 2 months ago • 4 comments

sync of Make unique query history keys for monex #5881

dizzzz avatar Oct 06 '25 18:10 dizzzz

In todays community meeting we had a look at how to do that.

Basically, we need to check that the jmx:id is increasing after two consecutive calls to any XQuery

<jmx:RecentQueryHistory>
    <jmx:row>
        <jmx:key>
            <jmx:id>0</jmx:id>
            <jmx:key>String/2351709330981213714</jmx:key>
        </jmx:key>
        <jmx:value>
            <jmx:idx>0</jmx:idx>
            <jmx:mostRecentExecutionDuration>104</jmx:mostRecentExecutionDuration>
            <jmx:mostRecentExecutionTime>1759775605266</jmx:mostRecentExecutionTime>
            <jmx:recentInvocationCount>1</jmx:recentInvocationCount>
            <jmx:requestURI/>
            <jmx:sourceKey>String/2351709330981213714</jmx:sourceKey>
        </jmx:value>
    </jmx:row>
</jmx:RecentQueryHistory>

line-o avatar Oct 06 '25 18:10 line-o

Test should be added somewhere near https://github.com/nverwer/exist/blob/ab0c76d84a92394488e48427c76d05a54e2632da/exist-core/src/test/java/org/exist/management/JmxRemoteTest.java

line-o avatar Oct 06 '25 18:10 line-o

For Monday: shall we pull in? Or still a test needed?

dizzzz avatar Dec 07 '25 12:12 dizzzz

If we were to pull it in we should have an issue open to create the test.

line-o avatar Dec 08 '25 21:12 line-o