Skip to content

Commit a8e66a2

Browse files
committed
SDKQE-3488: Java Performer fails to parse QueryProfile in transactions' options
Motivation ---------- The parsing handling for TransactionQueryOptions in OptionsUtil fails due to the driver sending query profiles in lowercase, which doesn’t match the uppercase Enum member name when doing QueryProfile.valueOf(lowercase_profile) Changes ------- - Call toUpperCase() on the received query profile Change-Id: Iee4fee6783594c92ed819b94f1114b174cb65b61 Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/220741 Reviewed-by: Graham Pople <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent 3193201 commit a8e66a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-fit-performer/src/main/java/com/couchbase/utils/OptionsUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ public static com.couchbase.client.java.transactions.TransactionQueryOptions tra
574574
}
575575

576576
if (qo.hasProfile()) {
577-
queryOptions.profile(QueryProfile.valueOf(qo.getProfile()));
577+
queryOptions.profile(QueryProfile.valueOf(qo.getProfile().toUpperCase()));
578578
}
579579

580580
if (qo.hasReadonly()) {

0 commit comments

Comments
 (0)