"Kafka Java Connect" pattern can run for hours due to Regular Expression parsing issue at "Failover: Set Install dir" stepDescription"Kafka Java Connect" pattern can run for hours due to Regular Expression parsing issue at "Failover: Set Install dir" step.Checking discovery pattern log, you would notice the following step has long execution time:======Failover: Set Install dir2023-01-31 07:18:13: Execution time: 22800020 ms======Steps to Reproduce Run discovery on Server that host Kafka Connect application WorkaroundThis problem is currently under review and targeted to be fixed in a future release. Subscribe to this Known Error article to receive notifications when more information will be available. In the meantime, you can modify the following lines of code in "Kafka Java Connect" pattern:From:======step { name = "Failover: Set Install dir" parse_var_to_var { from_var_name = "process.commandLine" to_var_names = "install_directory" parsing_strategy = regex_parsing {regex = ".*:/(.*)/bin/.*zookeeper-jute.*jar"} if_not_found_do = nop {} } }======To:======step { name = "Failover: Set Install dir" if { condition = is_empty {get_attr {"install_directory"}} on_true = parse_var_to_var { from_var_name = "process.commandLine" to_var_names = "install_directory" parsing_strategy = regex_parsing {regex = "-cp.*:/(.*)/bin/.*zookeeper-jute.*?\\.jar "} if_not_found_do = nop {} } on_false = nop {} } } ======Related Problem: PRB1641166