docs: private StorageLocation loadSegmentWithRetry(DataSegment segment, String storageDirStr) throws SegmentLoadingException
    {
      for (StorageLocation loc : locations) {
        if (loc.canHandle(segment)) {
          File storageDir = new File(loc.getPath(), storageDirStr);
  
          try {
            loadInLocationWithStartMarker(segment, storageDir);
            return loc;
          }
          catch (SegmentLoadingException e) {
            log.makeAlert(
                e,
                "Failed to load segment in current location %s, try next location if any",
                loc.getPath().getAbsolutePath()
            )
               .addData("location", loc.getPath().getAbsolutePath())
               .emit();
  
            cleanupCacheFiles(loc.getPath(), storageDir);
          }
        }
      }
      throw new SegmentLoadingException("Failed to load segment %s in all locations.", segment.getId());
    }