fix(性能测试): 使用本地计算的时候禁用jmx里的backend listener

This commit is contained in:
CaptainB 2022-06-17 12:54:55 +08:00 committed by 刘瑞斌
parent 5bf3a8272c
commit 7631cf31b5
1 changed files with 2 additions and 0 deletions

View File

@ -558,6 +558,8 @@ public class JmeterDocumentParser implements EngineSourceParser {
String resourcePoolId = context.getResourcePoolId();
TestResourcePool resourcePool = CommonBeanFactory.getBean(TestResourcePoolService.class).getResourcePool(resourcePoolId);
if (!BooleanUtils.toBoolean(resourcePool.getBackendListener())) {
// 禁用现有的backend listener
backendListener.addAttribute("enabled", "false");
return;
}
KafkaProperties kafkaProperties = CommonBeanFactory.getBean(KafkaProperties.class);