This is an automated email from the ASF dual-hosted git repository. oleewere pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
commit 4a587b9e476e013268df7485c5c6d601a8e1b06f Author: Oliver Szabo <[email protected]> AuthorDate: Fri Apr 6 02:20:41 2018 +0200 AMBARI-23421. solrDataManager.py: Add _version_ to exclude list by default --- .../ambari-infra-solr-client/src/main/python/solrDataManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ambari-infra/ambari-infra-solr-client/src/main/python/solrDataManager.py b/ambari-infra/ambari-infra-solr-client/src/main/python/solrDataManager.py index 33146c1..5d2d2fa 100755 --- a/ambari-infra/ambari-infra-solr-client/src/main/python/solrDataManager.py +++ b/ambari-infra/ambari-infra-solr-client/src/main/python/solrDataManager.py @@ -372,6 +372,8 @@ def save_data(mode, solr_kinit_command, hdfs_kinit_command, curl_prefix, solr_ur solr_query_url_prefix = "{0}/{1}/select?q={2}&sort={3}&rows={4}&wt=json".format(solr_url, collection, q, sort, read_block_size) exclude_field_list = exclude_fields.split(',') if exclude_fields else None + if solr_output_collection and not exclude_field_list: + exclude_field_list = ['_version_'] done = False total_records = 0 @@ -773,4 +775,4 @@ if __name__ == '__main__': print("--- %s seconds ---" % (time.time() - start_time)) except KeyboardInterrupt: print - sys.exit(128 + signal.SIGINT) \ No newline at end of file + sys.exit(128 + signal.SIGINT) -- To stop receiving notification emails like this one, please contact [email protected].
