Class FileStoreUtils


  • public class FileStoreUtils
    extends Object
    Common utilities used by filestore-related code.
    • Constructor Detail

      • FileStoreUtils

        public FileStoreUtils()
    • Method Detail

      • fetchAndShuffleRemoteLiveNodes

        public static ArrayList<String> fetchAndShuffleRemoteLiveNodes​(CoreContainer coreContainer)
        Returns a shuffled list of all live nodes except the current host
      • validate

        public static void validate​(FileStore fileStore,
                                    List<String> sigs,
                                    FileStore.FileEntry entry,
                                    boolean isFirstAttempt)
                             throws org.apache.solr.common.SolrException,
                                    IOException
        Validate a file for signature
        Parameters:
        sigs - the signatures, at least one should succeed
        entry - The file details
        isFirstAttempt - If there is a failure
        Throws:
        org.apache.solr.common.SolrException
        IOException