Changeset 31041 for other-projects


Ignore:
Timestamp:
2016-11-02T20:07:40+13:00 (7 years ago)
Author:
davidb
Message:

Test needs to be more careful if -read-only specified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/ProcessForSolrIngest.java

    r31028 r31041  
    110110        ArrayList<String> solr_endpoints = new ArrayList<String>();
    111111       
    112         String solr_endpoint_ips = System.getProperty("wcsa-ef-ingest.solr-endpoint-ips",null);
    113         if (solr_endpoint_ips != null) {
    114             String [] ips = solr_endpoint_ips.split(",");
    115             for (String ip : ips) {
    116                 String solr_endpoint = _solr_url.replaceFirst("//.*?:", "//"+ip+":");
    117                 solr_endpoints.add(solr_endpoint);
     112        if (_solr_url != null) {
     113            String solr_endpoint_ips = System.getProperty("wcsa-ef-ingest.solr-endpoint-ips",null);
     114            if (solr_endpoint_ips != null) {
     115                String [] ips = solr_endpoint_ips.split(",");
     116                for (String ip : ips) {
     117                    String solr_endpoint = _solr_url.replaceFirst("//.*?:", "//"+ip+":");
     118                    solr_endpoints.add(solr_endpoint);
     119                }
    118120            }
    119         }
    120         else {
    121             if (_solr_url != null) {
     121            else {
    122122                solr_endpoints.add(_solr_url);
    123123            }
    124124        }
    125 
     125       
    126126        return solr_endpoints;
    127127    }
Note: See TracChangeset for help on using the changeset viewer.