fix some method exception error (#7210)

This commit is contained in:
hn 2021-07-01 10:59:03 +08:00 committed by GitHub
parent 536b7d2328
commit abd36dfc94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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.");