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

Fix bug in synchronizing over ProcedureEvent

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 Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • None
    • None

    Description

      Following synchronizes over local variable rather than the original ProcedureEvent object. Clearly a bug since this code block won't follow exclusion with many of the synchronized methods in ProcedureEvent class.

       @Override
        public void wakeEvents(final int count, final ProcedureEvent... events) {
          final boolean traceEnabled = LOG.isTraceEnabled();
          schedLock();
          try {
            int waitingCount = 0;
            for (int i = 0; i < count; ++i) {
              final ProcedureEvent event = events[i];
              synchronized (event) {
                if (!event.isReady()) {
      

      Attachments

        Activity

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

          People

            appy Apekshit Sharma Assign to me
            appy Apekshit Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment