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

Fix bug in synchronizing over ProcedureEvent

    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

        1. HBASE-19319.master.001.patch
          29 kB
          Apekshit Sharma
        2. HBASE-19319.master.002.patch
          31 kB
          Apekshit Sharma

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: