fix some method exception error (#7210)
This commit is contained in:
parent
536b7d2328
commit
abd36dfc94
|
|
@ -24,6 +24,7 @@ Release Notes.
|
|||
* Correct `profile.duration` to `profile.max_duration` in the default `agent.config` file.
|
||||
* Fix the response time of gRPC.
|
||||
* Add `ShardingSphere-5.0.0-beta` plugin.
|
||||
* Fix some method exception error.
|
||||
|
||||
#### OAP-Backend
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ public class SnifferConfigInitializer {
|
|||
}
|
||||
}
|
||||
|
||||
private static void overrideConfigByAgentOptions(String agentOptions) throws IllegalAccessException {
|
||||
private static void overrideConfigByAgentOptions(String agentOptions) throws IllegalArgumentException {
|
||||
for (List<String> terms : parseAgentOptions(agentOptions)) {
|
||||
if (terms.size() != 2) {
|
||||
throw new IllegalArgumentException("[" + terms + "] is not a key-value pair.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue