code: void waitForResuming() throws IOException
     {
        if (isSuspended.get())
        {
           try
           {
              latcher.get().await();
           }
           catch (InterruptedException e)
           {
              throw new IOException(e);
           }
        }
     }
docs: If component is suspended need to wait resuming and not allow
  execute query on closed index.
  
  @throws IOException