You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "James Clampffer (JIRA)" <ji...@apache.org> on 2017/05/08 18:49:04 UTC

[jira] [Created] (HDFS-11767) libhdfs++: SASL events should be scoped closer to usage

James Clampffer created HDFS-11767:
--------------------------------------

             Summary: libhdfs++: SASL events should be scoped closer to usage
                 Key: HDFS-11767
                 URL: https://issues.apache.org/jira/browse/HDFS-11767
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: James Clampffer
            Assignee: James Clampffer


"SASL Start" and "SASL End" are called in the SaslProtocol constructor and destructor.  SaslProtocol is held by a shared_ptr so there's a race where the RpcConnection can be torn down and another can be put in it's place while a callback is still holding the shared_ptr preventing "SASL End" from being called.

This can matter a lot because both Cyrus SASL and gsasl aren't thread safe during negotiation.  These event hooks provide a mechanism to pick up a process wide lock that guards access to the sasl library.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org