8000 feat: Add a new field `soft_failover_start_time` in the existing `rep… · googleapis/googleapis@afe86f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit afe86f3

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add a new field soft_failover_start_time in the existing replication_status in .google.cloud.bigquery.reservation.v1.Reservation to provide visibility into the state of ongoing soft failover operations on the reservation
feat: Add a new field `failover_mode` to `.google.cloud.bigquery.reservation.v1.FailoverReservationRequest` that allows users to choose between the HARD or SOFT failover modes when they initiate a failover operation on a reservation PiperOrigin-RevId: 802187284
1 parent 82465e8 commit afe86f3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

google/cloud/bigquery/reservation/v1/reservation.proto

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,14 @@ message Reservation {
496496
// that was successfully replicated to the secondary.
497497
google.protobuf.Timestamp last_replication_time = 3
498498
[(google.api.field_behavior) = OUTPUT_ONLY];
499+
500+
// Output only. The time at which a soft failover for the reservation and
501+
// its associated datasets was initiated. After this field is set, all
502+
// subsequent changes to the reservation will be rejected unless a hard
503+
// failover overrides this operation. This field will be cleared once the
504+
// failover is complete.
505+
google.protobuf.Timestamp soft_failover_start_time = 4
506+
[(google.api.field_behavior) = OUTPUT_ONLY];
499507
}
500508

501509
// The resource name of the reservation, e.g.,
@@ -895,6 +903,11 @@ message FailoverReservationRequest {
895903
type: "bigqueryreservation.googleapis.com/Reservation"
896904
}
897905
];
906+
907+
// Optional. A parameter that determines how writes that are pending
908+
// replication are handled after a failover is initiated. If not specified,
909+
// HARD failover mode is used by default.
910+
FailoverMode failover_mode = 2 [(google.api.field_behavior) = OPTIONAL];
898911
}
899912

900913
// The request for
@@ -1389,3 +1402,21 @@ enum Edition {
13891402
// Enterprise Plus edition.
13901403
ENTERPRISE_PLUS = 3;
13911404
}
1405+
1406+
// The failover mode when a user initiates a failover on a reservation
1407+
// determines how writes that arepending replication are handled after the
1408+
// failover is initiated.
1409+
enum FailoverMode {
1410+
// Invalid value.
1411+
FAILOVER_MODE_UNSPECIFIED = 0;
1412+
1413+
// When customers initiate a soft failover, BigQuery will wait until all
1414+
// committed writes are replicated to the secondary. This mode requires both
1415+
// regions to be available for the failover to succeed and prevents data loss.
1416+
SOFT = 1;
1417+
1418+
// When customers initiate a hard failover, BigQuery will not wait until all
1419+
// committed writes are replicated to the secondary. There can be data loss
1420+
// for hard failover.
1421+
HARD = 2;
1422+
}

0 commit comments

Comments
 (0)
0