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

This commit is contained in:
Ayush Saxena 2020-02-08 01:17:59 +05:30
parent fafe78fea7
commit 23787e4bdd
1 changed files with 4 additions and 1 deletions

View File

@ -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) {