yiming187 closed pull request #115: minor, refine exception handling.
URL: https://github.com/apache/kylin/pull/115
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/server-base/src/main/java/org/apache/kylin/rest/service/AdminService.java 
b/server-base/src/main/java/org/apache/kylin/rest/service/AdminService.java
index 70afefdce7..f7881f141c 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/service/AdminService.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/service/AdminService.java
@@ -93,7 +93,7 @@ public void cleanupStorage() {
         try {
             job = new StorageCleanupJob();
         } catch (IOException e) {
-            logger.error("can not init StorageCleanupJob", e);
+            throw new RuntimeException("Can not init StorageCleanupJob", e);
         }
         String[] args = new String[] { "-delete", "true" };
         job.execute(args);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to