You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by pr...@apache.org on 2017/08/08 00:31:40 UTC

[2/3] drill git commit: DRILL-5686: Warning for sasl.max_wrapped_size contain incorrect syntax

DRILL-5686: Warning for sasl.max_wrapped_size contain incorrect syntax

closes #884


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/5bb4b1f6
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/5bb4b1f6
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/5bb4b1f6

Branch: refs/heads/master
Commit: 5bb4b1f661edc7281245d2d2ceed8d339e75d702
Parents: 75b2136
Author: Sorabh Hamirwasia <sh...@maprtech.com>
Authored: Mon Jul 24 19:06:21 2017 -0700
Committer: Paul Rogers <pr...@maprtech.com>
Committed: Mon Aug 7 14:46:28 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/drill/exec/rpc/BitConnectionConfig.java     | 5 +++--
 .../org/apache/drill/exec/rpc/user/UserConnectionConfig.java    | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/5bb4b1f6/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/BitConnectionConfig.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/BitConnectionConfig.java b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/BitConnectionConfig.java
index 7d9ebec..4f49993 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/BitConnectionConfig.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/BitConnectionConfig.java
@@ -68,8 +68,9 @@ public abstract class BitConnectionConfig extends AbstractConnectionConfig {
             "bit.encryption.sasl.max_wrapped_size. Must be a positive integer in bytes with a recommended max value " +
             "of %s", RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE));
       } else if (maxWrappedSize > RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE) {
-        logger.warn("The configured value of bit.encryption.sasl.max_wrapped_size is too big. This may cause higher" +
-            " memory pressure. [Details: Recommended max value is %s]", RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE);
+        logger.warn("The configured value of bit.encryption.sasl.max_wrapped_size: {} is too big. This may cause " +
+            "higher memory pressure. [Details: Recommended max value is {}]",
+            maxWrappedSize, RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE);
       }
       encryptionContext.setMaxWrappedSize(maxWrappedSize);
 

http://git-wip-us.apache.org/repos/asf/drill/blob/5bb4b1f6/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
index 64ac6be..57ad4d5 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
@@ -61,8 +61,9 @@ class UserConnectionConfig extends AbstractConnectionConfig {
             "user.encryption.sasl.max_wrapped_size. Must be a positive integer in bytes with a recommended max value " +
             "of %s", RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE));
       } else if (maxWrappedSize > RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE) {
-        logger.warn("The configured value of user.encryption.sasl.max_wrapped_size is too big. This may cause higher" +
-            " memory pressure. [Details: Recommended max value is %s]", RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE);
+        logger.warn("The configured value of user.encryption.sasl.max_wrapped_size: {} is too big. This may cause " +
+            "higher memory pressure. [Details: Recommended max value is {}]",
+            maxWrappedSize, RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE);
       }
       encryptionContext.setMaxWrappedSize(maxWrappedSize);