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

Severe lock contention in SparkConnectExecutionManager

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    Description

      Critical sections protected by executionsLock can become too broad when there are too many ExecuteHolders, e.g., >= 10^4. The problem is aggravated when there are too many threads in the system: priority inversion. In order to minimise the chance of a thread getting pre-empted holding executionsLock, replace it with a concurrent hash map that internally partitions the data: coarse-grained locking -> fine-grained locking.

      -> https://issues.apache.org/jira/browse/SPARK-49580 will be eventually needed.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            changgyoopark-db Changgyoo Park Assign to me
            changgyoopark-db Changgyoo Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment