Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-647

ConnectionManager.sendMessage may create too many unnecessary connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.1
    • 0.6.2, 0.7.0
    • Spark Core
    • None

    Description

      In ConnectionManager, sendMessage creates a new SendingConnection when connection host key is not found in connectionsById. But there might be too many unnecessary connections created before connectionsById is updated in the connection-manager-thread.run. In out test ConnectionMangerTest fails on "connection reset by peer" or "timeout" when there're too many message sending threads. We should make connectionRequests a map to track the connections by key so that connections can be reused.

      Attachments

        Activity

          People

            shane.huang Shane Huang
            shane.huang Shane Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: