Skip to content

Commit cf4b7e2

Browse files
Update core-api/src/main/java/com/optimizely/ab/bucketing/Bucketer.java
comment update Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com>
1 parent e3cfd5d commit cf4b7e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core-api/src/main/java/com/optimizely/ab/bucketing/Bucketer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ private DecisionResponse<Variation> bucketToVariation(@Nonnull ExperimentCore ex
115115

116116
// Only apply CMAB traffic allocation logic if decision path is WITH_CMAB
117117
if (decisionPath == DecisionPath.WITH_CMAB && experiment instanceof Experiment && ((Experiment) experiment).getCmab() != null) {
118-
// Override traffic allocations for CMAB experiments
118+
// For CMAB experiments, the original trafficAllocation is kept empty for backward compatibility.
119+
// Use the traffic allocation defined in the CMAB block for bucketing instead.
119120
String message = reasons.addInfo("Using CMAB traffic allocation for experiment \"%s\"", experimentKey);
120121
logger.info(message);
121122
trafficAllocations = Collections.singletonList(

0 commit comments

Comments
 (0)