Skip to content

Commit 56ebca1

Browse files
authored
fix(clp-package): Connect directly to the MongoDB replica (results cache) to avoid failed host resolution of in-container hostname (fixes #1519). (#1518)
1 parent 5312c87 commit 56ebca1

File tree

1 file changed

+1
-1
lines changed
  • components/clp-package-utils/clp_package_utils/scripts/native

1 file changed

+1
-1
lines changed

components/clp-package-utils/clp_package_utils/scripts/native/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def create_and_monitor_job_in_db(
7777

7878
if do_count_aggregation is None and count_by_time_bucket_size is None:
7979
return
80-
with pymongo.MongoClient(results_cache.get_uri()) as client:
80+
with pymongo.MongoClient(results_cache.get_uri(), directConnection=True) as client:
8181
search_results_collection = client[results_cache.db_name][str(job_id)]
8282
if do_count_aggregation is not None:
8383
for document in search_results_collection.find():

0 commit comments

Comments
 (0)