-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: implement closed ts side-transport publisher
The side-transport is a component running on each node and periodically publishing closed timestamps on ranges with the lease on the respective node. This complements the closing of timestamps through Raft commands such that inactive ranges still have their timestamp advanced. This commit introduces only the publishing side (the consumer is coming separately) - the guy opening streaming connections to all other nodes with follower replicas for some ranges with local leases and periodically publishing closed timestamp updates on a bunch of ranges at once. Care has been taken to make the communication protocol efficient. Each stream is stateful and the information in every message is nicely compressed. See [the RFC](#56675) for details. Release justification: Needed for global tables. Release note: None
- Loading branch information
1 parent
84c137e
commit b60602c
Showing
30 changed files
with
3,188 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2021 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package ctpb | ||
|
||
// SeqNum identifies a ctpb.Update. | ||
type SeqNum int64 |
Oops, something went wrong.