@Override public void run() { modificationLock.lock(); try { applyUpdates(); } catch (InterruptedException e) { log.interruptedWhileWaitingForIndexActivity( e ); Thread.currentThread().interrupt(); handleException( e ); } catch (Exception e) { log.backendError( e ); handleException( e ); } finally { modificationLock.unlock(); } }
@Override public void run() { modificationLock.lock(); try { applyUpdates(); } catch (InterruptedException e) { log.interruptedWhileWaitingForIndexActivity( resources.getIndexName(), e ); Thread.currentThread().interrupt(); handleException( e ); } catch (Exception e) { log.backendError( e ); handleException( e ); } finally { modificationLock.unlock(); } }