hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Appy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-19319) Fix bug in synchronizing over ProcedureEvent
Date Tue, 21 Nov 2017 23:42:00 GMT
Appy created HBASE-19319:

             Summary: Fix bug in synchronizing over ProcedureEvent
                 Key: HBASE-19319
                 URL: https://issues.apache.org/jira/browse/HBASE-19319
             Project: HBase
          Issue Type: Bug
            Reporter: Appy
            Assignee: Appy

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.
  public void wakeEvents(final int count, final ProcedureEvent... events) {
    final boolean traceEnabled = LOG.isTraceEnabled();
    try {
      int waitingCount = 0;
      for (int i = 0; i < count; ++i) {
        final ProcedureEvent event = events[i];
        synchronized (event) {
          if (!event.isReady()) {

This message was sent by Atlassian JIRA

View raw message