Skip to content

fix: after disabling the Java Request sampler, it cannot be enabled again - #6012

Merged
vlsi merged 1 commit into
apache:masterfrom
vlsi:java_enabled
Jun 27, 2023
Merged

fix: after disabling the Java Request sampler, it cannot be enabled again#6012
vlsi merged 1 commit into
apache:masterfrom
vlsi:java_enabled

Conversation

@vlsi

@vlsi vlsi commented Jun 27, 2023

Copy link
Copy Markdown
Collaborator

Java sampler was inheriting "enabled" status from its config element as internally, Java Sampler UI always creates a config element and merges it to the java sampler.

The solution is to move "configureTestElement(sampler);" to the very end of modifyTestElement so all the base properties are populated based on the element properties rather than "config element" properties.

Ideally, we should somehow limit "mergeIn", and we should refrain from merging unexpected properties.

Fixes #6004

…gain

Java sampler was inheriting "enabled" status from its config element
as internally, Java Sampler UI always creates a config element and merges it
to the java sampler.

The solution is to move "configureTestElement(sampler);" to the very end of
modifyTestElement so all the base properties are populated based on
the element properties rather than "config element" properties.

Ideally we should somehow limit "mergeIn", and we should refrain from merging
unexpected properties.

Fixes apache#6004
@vlsi vlsi added this to the 5.6.1 milestone Jun 27, 2023
@vlsi
vlsi merged commit 8534cb9 into apache:master Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5.6: After disabling the Java Request sampler, it cannot be enabled again

1 participant