docs: public synchronized void acceptMastership() {
          if (m_onMastership == null) {
              if (exportLog.isDebugEnabled()) {
                  exportLog.debug("Mastership Runnable not yet set for table " + getTableName() + " partition " + getPartitionId());
              }
              return;
          }
          if (m_mastershipAccepted.get()) {
              if (exportLog.isDebugEnabled()) {
                  exportLog.debug("Export table " + getTableName() + " mastership already accepted for partition " + getPartitionId());
              }
              return;
          }
          m_es.execute(new Runnable() {
              @Override
              public void run() {
                  try {
                      if (!m_es.isShutdown() || !m_closed) {
                          if (exportLog.isDebugEnabled()) {
                              exportLog.debug("Export table " + getTableName() + " accepting mastership for partition " + getPartitionId());
                          }
                          if (m_mastershipAccepted.compareAndSet(false, true)) {
                              // Either get enough responses or have received TRANSFER_MASTER event, clear the response sender HSids.
                              m_queryResponses.clear();
                              m_onMastership.run();
                          }
                      }
                  } catch (Exception e) {
                      exportLog.error("Error in accepting mastership", e);
                  }
              }
          });
      }