You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by pr...@apache.org on 2014/06/08 19:35:16 UTC

git commit: SENTRY-275: Fix compilation error in SentryService (Jarek Jarcec Cecho via Prasad Mujumdar)

Repository: incubator-sentry
Updated Branches:
  refs/heads/master 1e96a028b -> 546617be3


SENTRY-275: Fix compilation error in SentryService (Jarek Jarcec Cecho via Prasad Mujumdar)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/546617be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/546617be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/546617be

Branch: refs/heads/master
Commit: 546617be36504d1cfccbca5acd6a2a9d203f0bc4
Parents: 1e96a02
Author: Prasad Mujumdar <pr...@cloudera.com>
Authored: Sun Jun 8 10:34:52 2014 -0700
Committer: Prasad Mujumdar <pr...@cloudera.com>
Committed: Sun Jun 8 10:34:52 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/sentry/service/thrift/SentryService.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/546617be/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryService.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryService.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryService.java
index bbe5542..9e5c334 100644
--- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryService.java
+++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryService.java
@@ -131,7 +131,7 @@ public class SentryService implements Callable {
   }
 
   @Override
-  public String call() throws Exception{
+  public String call() throws Exception {
     LoginContext loginContext = null;
     try {
       if (kerberos) {
@@ -152,7 +152,7 @@ public class SentryService implements Callable {
       } else {
         runServer();
       }
-    } catch (Throwable t) {
+    } catch (Exception t) {
       LOGGER.error("Error starting server", t);
       throw t;
     }finally {