You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/09/07 03:14:28 UTC

[skywalking] 01/01: Bump up commons-compress version and polish LAL debug error message

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch compress
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 46e795f4b7d83078bf1f71da7a8619f7647d47d6
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue Sep 7 11:11:40 2021 +0800

    Bump up commons-compress version and polish LAL debug error message
---
 oap-server-bom/pom.xml                                              | 6 ++++++
 .../apache/skywalking/oap/query/graphql/resolver/LogTestQuery.java  | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/oap-server-bom/pom.xml b/oap-server-bom/pom.xml
index ae8fc09..36a9390 100644
--- a/oap-server-bom/pom.xml
+++ b/oap-server-bom/pom.xml
@@ -76,6 +76,7 @@
         <armeria.version>1.11.0</armeria.version>
         <awaitility.version>3.0.0</awaitility.version>
         <httpcore.version>4.4.13</httpcore.version>
+        <commons-compress.version>1.21</commons-compress.version>
     </properties>
 
     <dependencyManagement>
@@ -533,6 +534,11 @@
                 <version>${awaitility.version}</version>
                 <scope>test</scope>
             </dependency>
+             <dependency>
+                <groupId>org.apache.commons</groupId>
+                <artifactId>commons-compress</artifactId>
+                <version>${commons-compress.version}</version>
+             </dependency>
         </dependencies>
     </dependencyManagement>
 </project>
diff --git a/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/LogTestQuery.java b/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/LogTestQuery.java
index e71916e..527ff9c 100644
--- a/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/LogTestQuery.java
+++ b/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/LogTestQuery.java
@@ -53,7 +53,9 @@ public class LogTestQuery implements GraphQLQueryResolver {
 
     public LogTestResponse test(LogTestRequest request) throws Exception {
         if (!config.isEnableLogTestTool()) {
-            throw new IllegalAccessException("LAL debug tool is not enabled");
+            throw new IllegalAccessException(
+                "LAL debug tool is not enabled. To enable, please set SW_QUERY_GRAPHQL_ENABLE_LOG_TEST_TOOL=true," +
+                    "for more details, refer to https://skywalking.apache.org/docs/main/latest/en/setup/backend/configuration-vocabulary/");
         }
 
         requireNonNull(request, "request");