Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-17718 Hive on Spark Debugging Improvements
  3. HIVE-19785

Race condition when timeout task is invoked during SASL negotation

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Spark
    • None

    Description

      There is a race condition that leads to some extraneous exception messages when the timeout task is invoked in RpcServer.

      If a timeout is triggered by RpcServer#registerClient the method will remove the clientId from pendingClients. However, if the SASL negotiation is in progress when the timeout task is invoked, then SaslServerHandler#update will throw an IllegalArgumentException complaining that it can't find the clientId in the map of pendingClients.

      The timeout still succeeds, but the logging is confusing and multiple exceptions make this difficult to debug.

      Attachments

        Activity

          People

            aihuaxu Aihua Xu
            stakiar Sahil Takiar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: