Skip to content

Commit 9ffee33

Browse files
authored
Adservice returns error status code when feature flag is enabled (#1484)
1 parent 36d0215 commit 9ffee33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adservice/src/main/java/oteldemo/AdService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void getAds(AdRequest req, StreamObserver<AdResponse> responseObserver) {
182182
adRequestTypeKey, adRequestType.name(), adResponseTypeKey, adResponseType.name()));
183183

184184
if (getFeatureFlagEnabled(ADSERVICE_FAILURE)) {
185-
throw new StatusRuntimeException(Status.RESOURCE_EXHAUSTED);
185+
throw new StatusRuntimeException(Status.UNAVAILABLE);
186186
}
187187

188188
if (getFeatureFlagEnabled(ADSERVICE_MANUAL_GC_FEATURE_FLAG)) {

0 commit comments

Comments
 (0)