@@ -165,7 +165,7 @@ def test_iteration_w_empty_raw(self):
165165 metadata = [
166166 (
167167 "x-goog-spanner-request-id" ,
168- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
168+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
169169 )
170170 ],
171171 )
@@ -187,7 +187,7 @@ def test_iteration_w_non_empty_raw(self):
187187 metadata = [
188188 (
189189 "x-goog-spanner-request-id" ,
190- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
190+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
191191 )
192192 ],
193193 )
@@ -214,7 +214,7 @@ def test_iteration_w_raw_w_resume_tken(self):
214214 metadata = [
215215 (
216216 "x-goog-spanner-request-id" ,
217- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
217+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
218218 )
219219 ],
220220 )
@@ -293,7 +293,7 @@ def test_iteration_w_raw_raising_non_retryable_internal_error_no_token(self):
293293 metadata = [
294294 (
295295 "x-goog-spanner-request-id" ,
296- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
296+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
297297 )
298298 ],
299299 )
@@ -371,7 +371,7 @@ def test_iteration_w_raw_raising_non_retryable_internal_error(self):
371371 metadata = [
372372 (
373373 "x-goog-spanner-request-id" ,
374- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
374+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
375375 )
376376 ],
377377 )
@@ -550,7 +550,7 @@ def test_iteration_w_raw_raising_non_retryable_internal_error_after_token(self):
550550 metadata = [
551551 (
552552 "x-goog-spanner-request-id" ,
553- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
553+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
554554 )
555555 ],
556556 )
@@ -834,7 +834,7 @@ def _read_helper(
834834 ("google-cloud-resource-prefix" , database .name ),
835835 (
836836 "x-goog-spanner-request-id" ,
837- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .{ database ._channel_id } .0 .1" ,
837+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .{ database ._channel_id } .1 .1" ,
838838 ),
839839 ],
840840 retry = retry ,
@@ -1089,7 +1089,7 @@ def _execute_sql_helper(
10891089 ("google-cloud-resource-prefix" , database .name ),
10901090 (
10911091 "x-goog-spanner-request-id" ,
1092- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
1092+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
10931093 ),
10941094 ],
10951095 timeout = timeout ,
@@ -1266,7 +1266,7 @@ def _partition_read_helper(
12661266 ("x-goog-spanner-route-to-leader" , "true" ),
12671267 (
12681268 "x-goog-spanner-request-id" ,
1269- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
1269+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
12701270 ),
12711271 ],
12721272 retry = retry ,
@@ -1449,7 +1449,7 @@ def _partition_query_helper(
14491449 ("x-goog-spanner-route-to-leader" , "true" ),
14501450 (
14511451 "x-goog-spanner-request-id" ,
1452- f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.0 .1" ,
1452+ f"1.{ REQ_RAND_PROCESS_ID } .{ database ._nth_client_id } .1.1 .1" ,
14531453 ),
14541454 ],
14551455 retry = retry ,
@@ -1920,6 +1920,7 @@ def __init__(self):
19201920class _Database (object ):
19211921 def __init__ (self , directed_read_options = None ):
19221922 self .name = "testing"
1923+ self ._nth_request = 0
19231924 self ._instance = _Instance ()
19241925 self ._route_to_leader_enabled = True
19251926 self ._directed_read_options = directed_read_options
0 commit comments