Merge pull request #24 from keitaroinc/fix-prerun-solrcloud

Fix zookeeper returning true when in SolrCloud mode
This commit is contained in:
Благоја Стојкоски 2020-09-14 20:04:10 +02:00 committed by GitHub
commit cc50b73783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -57,6 +57,8 @@ def check_solr_connection(retry=None):
else:
import re
conn_info = connection.read()
# SolrCloud
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
eval(conn_info)
def init_db():

View File

@ -57,6 +57,8 @@ def check_solr_connection(retry=None):
else:
import re
conn_info = connection.read()
# SolrCloud
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
eval(conn_info)
def init_db():

View File

@ -57,7 +57,8 @@ def check_solr_connection(retry=None):
else:
import re
conn_info = connection.read()
print(conn_info)
# SolrCloud
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
eval(conn_info)
def init_db():