You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by revans2 <gi...@git.apache.org> on 2018/09/18 22:04:20 UTC

[GitHub] storm pull request #2842: STORM-3229: Add in better error reporting

GitHub user revans2 opened a pull request:

    https://github.com/apache/storm/pull/2842

    STORM-3229:  Add in better error reporting

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/revans2/incubator-storm STORM-3229

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/2842.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2842
    
----
commit b1a535de35b8813a84d1cf6d95bc811fa0a58381
Author: Robert (Bobby) Evans <ev...@...>
Date:   2018-09-18T22:03:39Z

    STORM-3229:  Add in better error reporting

----


---

[GitHub] storm issue #2842: STORM-3229: Add in better error reporting

Posted by revans2 <gi...@git.apache.org>.
Github user revans2 commented on the issue:

    https://github.com/apache/storm/pull/2842
  
    @danny0405 I changed the log to info.  That is a great point, because the only time you would see that under normally would be if someone had configured the cluster to use digest auth, which we really only have around for testing purposes.


---

[GitHub] storm pull request #2842: STORM-3229: Add in better error reporting

Posted by danny0405 <gi...@git.apache.org>.
Github user danny0405 commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2842#discussion_r218691752
  
    --- Diff: storm-client/src/jvm/org/apache/storm/security/auth/workertoken/WorkerTokenAuthorizer.java ---
    @@ -112,13 +112,21 @@ private static IStormClusterState buildStateIfNeeded(Map<String, Object> conf, T
             if (keyCache == null) {
                 return Optional.empty();
             }
    +        byte[] user = null;
    +        WorkerTokenInfo deser = null;
    +        try {
    +            user = Base64.getDecoder().decode(userName);
    +            deser = Utils.deserialize(user, WorkerTokenInfo.class);
    +        } catch (Exception e) {
    +            LOG.debug("Could not decode {}, might just be a plain digest request...", userName, e);
    +            return Optional.empty();
    --- End diff --
    
    Could we change to LOG.INFO if the request it not that frequent,we can see more details from the log.


---

[GitHub] storm pull request #2842: STORM-3229: Add in better error reporting

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/storm/pull/2842


---