Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20280

Fix possibility of deadlocking in refreshFileConnections when prefetch is enabled

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-2, 1.4.2
    • 1.4.4, 2.0.0
    • BucketCache
    • None
    • Reviewed

    Description

      When prefetch on open is specified, there is a deadlocking case
      where if the prefetch is cancelled, the PrefetchExecutor interrupts
      the threads if necessary, when that happens in FileIOEngine, it
      causes an ClosedByInterruptException which is a subclass of
      ClosedChannelException. If we retry all ClosedChannelExceptions,
      this will lock as this access is expected to be interrupted.
      This change removes calling refreshFileConnections for
      ClosedByInterruptExceptions.

      Attachments

        Activity

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

          People

            zyork Zach York
            zyork Zach York
            Votes:
            0 Vote for this issue
            Watchers:
            5 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment