Skip to content

Commit 8e171b6

Browse files
authored
test(Bigtable): configure per-operation timeout and totalTimeoutMillis for MutateRow in test proxy (#9605)
fix: do not retry mutateRow
1 parent 199b16a commit 8e171b6

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎Bigtable/tests/Conformance/proxy/src/ProxyService.php‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,20 @@ public function MutateRow(GRPC\ContextInterface $ctx, Testproxy\MutateRowRequest
275275
'appProfileId' => $config->getAppProfileId(),
276276
]);
277277

278+
$options = [];
279+
if ($timeoutMillis = $this->getTimeoutMillis($config->getPerOperationTimeout())) {
280+
$options = [
281+
'timeoutMillis' => $timeoutMillis,
282+
'retrySettings' => [
283+
'totalTimeoutMillis' => $timeoutMillis,
284+
],
285+
];
286+
}
278287
try {
279288
$table->mutateRow(
280289
$request->getRowKey(),
281290
$this->protoToMutations($request->getMutations()),
282-
['timeoutMillis' => $this->getTimeoutMillis($config->getPerOperationTimeout())],
291+
$options,
283292
);
284293
} catch (\Google\ApiCore\ApiException $e) {
285294
return $out->setStatus(new Status([

0 commit comments

Comments
 (0)