code: private void tryReloadingEditLog() throws IOException {
      LOG.info("Segment - trying to reload edit log segment");
      // sleep on error
      sleep(errorSleepTimeout);
  
      // check if a new segment exists
      checkProgress();
  
      // reopen current segment
      setupIngestStreamWithRetries(currentSegmentTxId);
  
      // set the position to last good position
      refreshStreamPosition();
    }
docs: On error when reading transactions from the stream, try reloading the input
  stream.