[#207] fix(api): fixed ShowStatement behaviour for parallel requests
This commit is contained in:
parent
5930023365
commit
efa646a657
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.provectus.kafka.ui.strategy.ksql.statement;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.provectus.kafka.ui.model.KsqlCommand;
|
||||
import com.provectus.kafka.ui.model.KsqlCommandResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
@ -36,6 +37,15 @@ public class ShowStrategy extends BaseStrategy {
|
|||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaseStrategy ksqlCommand(KsqlCommand ksqlCommand) {
|
||||
// return new instance to avoid conflicts for parallel requests
|
||||
ShowStrategy clone = new ShowStrategy();
|
||||
clone.setResponseValueKey(responseValueKey);
|
||||
clone.ksqlCommand = ksqlCommand;
|
||||
return clone;
|
||||
}
|
||||
|
||||
protected String getShowRegExp(String key) {
|
||||
return "show " + key + ";";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue