Просмотр исходного кода

HDFS-15136. LOG flooding in secure mode when Cookies are not set in request header. Contributed by Renukaprasad C

Ayush Saxena 5 лет назад
Родитель
Сommit
23787e4bdd

+ 4 - 1
hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticatedURL.java

@@ -99,7 +99,10 @@ public class AuthenticatedURL {
             cookies = HttpCookie.parse(header);
           } catch (IllegalArgumentException iae) {
             // don't care. just skip malformed cookie headers.
-            LOG.debug("Cannot parse cookie header: " + header, iae);
+            // When header is empty - "Cannot parse cookie header, header = ,
+            // reason = Empty cookie header string"
+            LOG.debug("Cannot parse cookie header, header = {}, reason = {} ",
+                header, iae.getMessage());
             continue;
           }
           for (HttpCookie cookie : cookies) {