Skip to content

[Bug] Instrumentation view does not update when probes are inserted #1184

@andrewazores

Description

@andrewazores

See cryostatio/test-applications#43
Using this sample application and a JMC Agent probe template like the following:

<jfragent>
    <config>
        <classprefix>__JFREvent</classprefix>
        <allowtostring>false</allowtostring>
        <allowconverter>false</allowconverter>
    </config>
    <events>
        <event id="io.cryostat.test">
            <label>Quarkus Test Event</label>
            <class>java.lang.Runnable</class>
            <stacktrace>true</stacktrace>
            <rethrow>true</rethrow>
            <location>WRAP</location>
            <method>
                <name>run</name>
                <descriptor>()V</descriptor>
            </method>
        </event>
    </events>
</jfragent>

At the Instrumentation view, this template can be successfully uploaded. With the correct sample application selected this probe can be inserted and a notification appears, but the view state does not update and so the Live Configuration view does not reflect the new changes. Navigating away from Instrumentation and back, or refreshing the browser tab, causes the view to refresh and update its state as expected.

Image

When removing probes from the target the view updates and a success notification appears, but the notification says the probes were removed from undefined target.

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions