You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2020/04/20 06:25:15 UTC
[ranger] branch master updated: RANGER-2797 : changing error to
debug as it does not make impact on transactions
This is an automated email from the ASF dual-hosted git repository.
mehul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 6d93ba7 RANGER-2797 : changing error to debug as it does not make impact on transactions
6d93ba7 is described below
commit 6d93ba7158dbc366457613f29b71b25ee6790484
Author: maheshbandal <ma...@gmail.com>
AuthorDate: Thu Apr 16 20:49:46 2020 +0530
RANGER-2797 : changing error to debug as it does not make impact on transactions
Signed-off-by: Mehul Parikh <me...@apache.org>
---
.../ranger/common/db/RangerTransactionSynchronizationAdapter.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/security-admin/src/main/java/org/apache/ranger/common/db/RangerTransactionSynchronizationAdapter.java b/security-admin/src/main/java/org/apache/ranger/common/db/RangerTransactionSynchronizationAdapter.java
index 536ca29..4bee929 100644
--- a/security-admin/src/main/java/org/apache/ranger/common/db/RangerTransactionSynchronizationAdapter.java
+++ b/security-admin/src/main/java/org/apache/ranger/common/db/RangerTransactionSynchronizationAdapter.java
@@ -188,8 +188,10 @@ public class RangerTransactionSynchronizationAdapter extends TransactionSynchron
}
});
} catch (Exception e) {
- LOG.error("Failed to commit TransactionService transaction", e);
- LOG.error("Ignoring...");
+ if(LOG.isDebugEnabled()) {
+ LOG.debug("Failed to commit TransactionService transaction", e);
+ }
+ LOG.warn("Failed to commit TransactionService transaction. Ignoring...");
}
} else {
if (LOG.isDebugEnabled()) {