Skip to content

Commit f87ce4a

Browse files
ashwin2002claude
andcommitted
Fix FTS index creation crash when using dict-based workload FTS config
workload.get("FTS") returns {"num_indexes": N, "num_queries": N} but code used integer index [0] instead of the key name. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Change-Id: I992080ebbea25f85370f74453f7e235cad86fcd2 Reviewed-on: https://review.couchbase.org/c/TAF/+/245270 Tested-by: Build Bot <build@couchbase.com> Tested-by: Ashwin <ashwin.govindarajulu@couchbase.com> Reviewed-by: <shiva.adky@couchbase.com>
1 parent 27cf9dc commit f87ce4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pytests/aGoodDoctor/fts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def create_fts_indexes(self, cluster, dims=1536, similarity="l2_norm", _type="ve
129129
if valType == "NimbusM":
130130
queryTypes = NimbusMQueries
131131
i = 0
132-
while i < workload.get("FTS")[0]:
132+
while i < workload.get("FTS")["num_indexes"]:
133133
name = str(b.name).replace("-", "_") + c + "_fts_idx_"+str(i)
134134
fts_param_template = deepcopy(template)
135135
fts_param_template.update({

0 commit comments

Comments
 (0)