Skip to content

Conversation

@rohit-nayak-ps
Copy link
Member

@rohit-nayak-ps rohit-nayak-ps commented Aug 13, 2024

Description

This PR adds an option to the VTGate VStream API to allow heartbeats created by vttablet's heartbeat writer to be streamed as regular FieldEvents/RowEvents for the sidecar _vt.heartbeat table.

flags := &vtgatepb.VStreamFlags{
	StreamKeyspaceHeartbeats: true,
}

Note that the vttablet heartbeats have to be enabled either through the throttler (which is on by default) or explicitly turning on the heartbeats using, for example, --heartbeat_enable, --heartbeat_interval 1s and --heartbeat_on_demand_duration 0

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

@github-actions github-actions bot added this to the v21.0.0 milestone Aug 13, 2024
@rohit-nayak-ps rohit-nayak-ps force-pushed the rohit/vstream-vt-heartbeat branch from 68863d4 to 731799a Compare August 14, 2024 08:17
@codecov
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 90.12346% with 8 lines in your changes missing coverage. Please review.

Project coverage is 68.98%. Comparing base (cc68dd5) to head (8fb0240).
Report is 34 commits behind head on main.

Files Patch % Lines
go/vt/vttablet/tabletserver/vstreamer/vstreamer.go 94.33% 3 Missing ⚠️
go/vt/vtgate/vstream_manager.go 75.00% 2 Missing ⚠️
...et/tabletmanager/vreplication/replica_connector.go 0.00% 1 Missing ⚠️
go/vt/vttablet/tabletserver/binlog_watcher.go 0.00% 1 Missing ⚠️
go/vt/vttablet/tabletserver/tabletserver.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16593      +/-   ##
==========================================
+ Coverage   68.85%   68.98%   +0.12%     
==========================================
  Files        1557     1562       +5     
  Lines      199891   200776     +885     
==========================================
+ Hits       137644   138505     +861     
- Misses      62247    62271      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…nes and the ones specified separately

Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
return err
}
return tsv.vstreamer.Stream(ctx, request.Position, request.TableLastPKs, request.Filter, throttlerapp.VStreamerName, send)
return tsv.vstreamer.Stream(ctx, request.Position, request.TableLastPKs, request.Filter, throttlerapp.VStreamerName, send, request.Options)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding vstream options to support a variadic set of options (0-N) like we recently did for lock options and (workflow) server options? Then we don't need to pass this as nil in so many places: https://github.com/vitessio/vitess/blob/main/go/vt/vtctl/workflow/server_options.go

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer using strong typing unless functionally contraindicated. Especially for a grpc API.

While updating all usages can be tedious, it also helps review the parts of code where that API is being called: #16593 (comment)

Copy link
Member

@mattlord mattlord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I only had some minor comments. Let me know what you think and I'll come back to this quickly.

Comment on lines -1490 to +1563
func TestInternalTables(t *testing.T) {
func TestOnlineDDLTables(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a clue that it might be better to explicitly call these sidecar[db]_tables rather than internal_tables. Although they're all internal tables so it's also fine as-is IMO.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I was also vacillating between internal and sidecar(db). internal is not precise because we could also term online ddl shadow tables and other artifacts as internal. I will let @deepthi also weigh in before changing it everywhere.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to have been resolved.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepthi, the question was a broader one. Currently we use options/proto attributes like InternalTables, is_internal. Should we change that to SidecarDBTables and is_sidecardb_table?

We could either continue calling it Internal (keeping it generic, allowing for future specification of other tables than SidecarDB tables, like, I don't know, shadow tables in OnlineDDL for example) or lock it down to SidecarDB tables using that in the object naming instead.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal is fine for now. Renaming proto fields is not difficult if we wanted to change it in the future.

runCases(t, filter, testcases, startPos, nil)
}

// TestInternalTables tests streaming of sidecar db tables.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment for the function name is another clue that it might be better/clearer to call them SidecarDBTables rather than InternalTables.

Signed-off-by: Rohit Nayak <[email protected]>
Comment on lines -1490 to +1563
func TestInternalTables(t *testing.T) {
func TestOnlineDDLTables(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to have been resolved.


func (c *ReplicaConnector) VStream(ctx context.Context, startPos string, filter *binlogdatapb.Filter, send func([]*binlogdatapb.VEvent) error) error {
return c.vstreamer.Stream(ctx, startPos, nil, filter, throttlerapp.ReplicaConnectorName, send)
return c.vstreamer.Stream(ctx, startPos, nil, filter, throttlerapp.ReplicaConnectorName, send, nil)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here again, based on how this is being used (only in PITR), we don't pass in the options.
Is it possible to replace usages of this connector with the tabletConnector?

Copy link
Member Author

@rohit-nayak-ps rohit-nayak-ps Aug 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to replace usages of this connector with the tabletConnector?

I think so. Should be a separate PR though.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should even think about deleting all the binlog server code in the existing PITR implementation. No one is using it.

Copy link
Member

@mattlord mattlord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, @rohit-nayak-ps ! ❤️

@deepthi deepthi merged commit bc6fb1c into vitessio:main Aug 27, 2024
@deepthi deepthi deleted the rohit/vstream-vt-heartbeat branch August 27, 2024 16:09
makinje16 pushed a commit to slackhq/vitess that referenced this pull request Mar 7, 2025
makinje16 added a commit to slackhq/vitess that referenced this pull request Mar 13, 2025
tanjinx pushed a commit to slackhq/vitess that referenced this pull request Mar 13, 2025
…#16593) (#620)

* VStream API: allow keyspace-level heartbeats to be streamed (vitessio#16593)

Signed-off-by: Malcolm Akinje <[email protected]>

* `slack-19.0` backport v22 `vtorc` optimizations + stats, part 3 (#618)

* Remove unused code in discovery queue creation (vitessio#17515)

Signed-off-by: Manan Gupta <[email protected]>

* vtorc: Cleanup unused code (vitessio#15508)

Signed-off-by: Dirkjan Bussink <[email protected]>

* `vtorc`: cleanup discover queue, add concurrency flag (vitessio#17825)

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add tablets watched stats

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix missing merge conflict update

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: skip unnecessary `inst.ReadTablet` in `logic.LockShard(...)`

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: use `errgroup` in keyspace/shard discovery

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix import

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix ineffassign

Signed-off-by: Tim Vaillancourt <[email protected]>

* missing import

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add stats for discovery workers

Signed-off-by: Tim Vaillancourt <[email protected]>

* get count from backend

Signed-off-by: Tim Vaillancourt <[email protected]>

* rm unused map

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>

* Bp pr 17558 pr 17858.slack19.0 (#615)

* VReplication: Improve error handling in VTGate VStreams (vitessio#17558)

Signed-off-by: Tom Thornton <[email protected]>

* Backport vitessio#17858

---------

Signed-off-by: Tom Thornton <[email protected]>

* `slack-19.0`: re-backport tweaks from vitessio#17911 (#621)

* fix bug in reverse `if`

Signed-off-by: Tim Vaillancourt <[email protected]>

* simplify

Signed-off-by: Tim Vaillancourt <[email protected]>

* add `ReadTabletCountsByShard` test

Signed-off-by: Tim Vaillancourt <[email protected]>

* use map of map

Signed-off-by: Tim Vaillancourt <[email protected]>

* capitalize Cell

Signed-off-by: Tim Vaillancourt <[email protected]>

* gofmt lint

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix plural in names

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Malcolm Akinje <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tom Thornton <[email protected]>
Signed-off-by: Malcolm Akinje <[email protected]>
Co-authored-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>
Co-authored-by: Tom Thornton <[email protected]>
makinje16 added a commit to slackhq/vitess that referenced this pull request Mar 20, 2025
…#16593) (#620)

* VStream API: allow keyspace-level heartbeats to be streamed (vitessio#16593)

Signed-off-by: Malcolm Akinje <[email protected]>

* `slack-19.0` backport v22 `vtorc` optimizations + stats, part 3 (#618)

* Remove unused code in discovery queue creation (vitessio#17515)

Signed-off-by: Manan Gupta <[email protected]>

* vtorc: Cleanup unused code (vitessio#15508)

Signed-off-by: Dirkjan Bussink <[email protected]>

* `vtorc`: cleanup discover queue, add concurrency flag (vitessio#17825)

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add tablets watched stats

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix missing merge conflict update

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: skip unnecessary `inst.ReadTablet` in `logic.LockShard(...)`

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: use `errgroup` in keyspace/shard discovery

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix import

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix ineffassign

Signed-off-by: Tim Vaillancourt <[email protected]>

* missing import

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add stats for discovery workers

Signed-off-by: Tim Vaillancourt <[email protected]>

* get count from backend

Signed-off-by: Tim Vaillancourt <[email protected]>

* rm unused map

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>

* Bp pr 17558 pr 17858.slack19.0 (#615)

* VReplication: Improve error handling in VTGate VStreams (vitessio#17558)

Signed-off-by: Tom Thornton <[email protected]>

* Backport vitessio#17858

---------

Signed-off-by: Tom Thornton <[email protected]>

* `slack-19.0`: re-backport tweaks from vitessio#17911 (#621)

* fix bug in reverse `if`

Signed-off-by: Tim Vaillancourt <[email protected]>

* simplify

Signed-off-by: Tim Vaillancourt <[email protected]>

* add `ReadTabletCountsByShard` test

Signed-off-by: Tim Vaillancourt <[email protected]>

* use map of map

Signed-off-by: Tim Vaillancourt <[email protected]>

* capitalize Cell

Signed-off-by: Tim Vaillancourt <[email protected]>

* gofmt lint

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix plural in names

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Malcolm Akinje <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tom Thornton <[email protected]>
Signed-off-by: Malcolm Akinje <[email protected]>
Co-authored-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>
Co-authored-by: Tom Thornton <[email protected]>
tanjinx added a commit to slackhq/vitess that referenced this pull request Mar 24, 2025
…d Journal Events (#585)

* VTGate VStream: Ensure reasonable delivery time for reshard journal event  (vitessio#16639)

Signed-off-by: Malcolm Akinje <[email protected]>
Signed-off-by: Malcolm Akinje <[email protected]>

* Backport sqlparser patch for v15->v19 upgrade: 14763 Fix accepting bind variables in time related function calls (#590)

* Fix accepting bind variables in time related function calls. (vitessio#14763)

Signed-off-by: Manan Gupta <[email protected]>

* fix test

---------

Signed-off-by: Manan Gupta <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>

* Upgrade vitess addons to 0.19.8 (#591)

This upgrade allows us to control whether vtorc raises problems or not
via an environment variable.

Signed-off-by: Eduardo J. Ortega U. <[email protected]>

* Use prefix in all vtorc check and recover logs (vitessio#17526) (#592)

This is a backport of vitessio#17526 . Original PR description below:

Description
This is meant to make recovery actions more easily identified from the logs. See vitessio#17465

Signed-off-by: Eduardo J. Ortega U. <[email protected]>

* `slack-19.0`: various backports for `vtorc`, part 2 (#596)

* Ensure all topo read calls consider `--topo_read_concurrency` (vitessio#17276)

Signed-off-by: Tim Vaillancourt <[email protected]>

* Revert "add keyrange support for vtorc clusters_to_watch (#457)"

This reverts commit 45c2199.

* [release-19.0] `vtorc`: require topo for `Healthy: true` in `/debug/health` (vitessio#17129) (vitessio#17351)

Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Co-authored-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>

* `vtorc`: fetch all tablets from cells once + filter during refresh (vitessio#17388)

Signed-off-by: Tim Vaillancourt <[email protected]>

* Support KeyRange in `--clusters_to_watch` flag (vitessio#17604)

Signed-off-by: Manan Gupta <[email protected]>

* missing func

Signed-off-by: Tim Vaillancourt <[email protected]>

* Add api end point to print the current database state in VTOrc (vitessio#15485)

Signed-off-by: Manan Gupta <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>

* `slack-19.0`: `vtorc`: improve handling of partial cell topo results (#599)

* `vtorc`: improve handling of partial cell topo results

Signed-off-by: Tim Vaillancourt <[email protected]>

* add unit test

Signed-off-by: Tim Vaillancourt <[email protected]>

* improve test

Signed-off-by: Tim Vaillancourt <[email protected]>

* add comments

Signed-off-by: Tim Vaillancourt <[email protected]>

* move sort to test

Signed-off-by: Tim Vaillancourt <[email protected]>

* goimports

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>

* `slack-19.0`: skip tests that will fail on v15 downgrade testing (#605)

Signed-off-by: Tim Vaillancourt <[email protected]>

* `slack-19.0`: Add stats for shards watched by VTOrc (#606)

* Add stats for shards watched by VTOrc

Signed-off-by: Tim Vaillancourt <[email protected]>

* Use len() in make

---------

Signed-off-by: Tim Vaillancourt <[email protected]>

* Add `GetServerStatus` RPC to use in PRS (vitessio#16022) (#607)

Signed-off-by: Manan Gupta <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>

* backport/patch connection pool bug/perf fixes (#604)

* [release-19.0] smartconnpool: do not allow connections to starve (vitessio#17675) (vitessio#17683)

Signed-off-by: Dirkjan Bussink <[email protected]>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>

* smartconnpool: Better handling for idle expiration (vitessio#17756)

Signed-off-by: Vicent Marti <[email protected]>

---------

Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Vicent Marti <[email protected]>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Co-authored-by: Vicent Martí <[email protected]>
Co-authored-by: Tim Vaillancourt <[email protected]>

* pool: reopen connection closed by idle timeout (vitessio#17818) (#609)

Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Vicent Martí <[email protected]>
Co-authored-by: Harshit Gangal <[email protected]>
Co-authored-by: Vicent Martí <[email protected]>

* VReplication: Support excluding lagging tablets and use this in vstream manager (vitessio#17835) (#612)

* `slack-19.0`: backport v22 VTOrc optimizations, part 2 (#613)

* `vtorc`: remove duplicate instance read from backend (vitessio#17834)

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add index for `inst.ReadInstanceClusterAttributes` table scan

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>

* Add stats for shards watched by VTOrc, purge stale shards (vitessio#17815) (#616)

* --consolidator-query-waiter-cap to set the max number of waiter for consolidated query (vitessio#17244) (#614)

Signed-off-by: Jun Wang <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: jwang <[email protected]>
Co-authored-by: Jun Wang <[email protected]>

* `slack-19.0` backport v22 `vtorc` optimizations + stats, part 3 (#618)

* Remove unused code in discovery queue creation (vitessio#17515)

Signed-off-by: Manan Gupta <[email protected]>

* vtorc: Cleanup unused code (vitessio#15508)

Signed-off-by: Dirkjan Bussink <[email protected]>

* `vtorc`: cleanup discover queue, add concurrency flag (vitessio#17825)

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add tablets watched stats

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix missing merge conflict update

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: skip unnecessary `inst.ReadTablet` in `logic.LockShard(...)`

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: use `errgroup` in keyspace/shard discovery

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix import

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix ineffassign

Signed-off-by: Tim Vaillancourt <[email protected]>

* missing import

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add stats for discovery workers

Signed-off-by: Tim Vaillancourt <[email protected]>

* get count from backend

Signed-off-by: Tim Vaillancourt <[email protected]>

* rm unused map

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>

* Bp pr 17558 pr 17858.slack19.0 (#615)

* VReplication: Improve error handling in VTGate VStreams (vitessio#17558)

Signed-off-by: Tom Thornton <[email protected]>

* Backport vitessio#17858

---------

Signed-off-by: Tom Thornton <[email protected]>

* `slack-19.0`: re-backport tweaks from vitessio#17911 (#621)

* fix bug in reverse `if`

Signed-off-by: Tim Vaillancourt <[email protected]>

* simplify

Signed-off-by: Tim Vaillancourt <[email protected]>

* add `ReadTabletCountsByShard` test

Signed-off-by: Tim Vaillancourt <[email protected]>

* use map of map

Signed-off-by: Tim Vaillancourt <[email protected]>

* capitalize Cell

Signed-off-by: Tim Vaillancourt <[email protected]>

* gofmt lint

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix plural in names

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix releasing the global read lock when mysqlshell backup fails (vitessio#17000) (#623)

Signed-off-by: Renan Rangel <[email protected]>

* VStream API: allow keyspace-level heartbeats to be streamed (vitessio#16593) (#620)

* VStream API: allow keyspace-level heartbeats to be streamed (vitessio#16593)

Signed-off-by: Malcolm Akinje <[email protected]>

* `slack-19.0` backport v22 `vtorc` optimizations + stats, part 3 (#618)

* Remove unused code in discovery queue creation (vitessio#17515)

Signed-off-by: Manan Gupta <[email protected]>

* vtorc: Cleanup unused code (vitessio#15508)

Signed-off-by: Dirkjan Bussink <[email protected]>

* `vtorc`: cleanup discover queue, add concurrency flag (vitessio#17825)

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add tablets watched stats

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix missing merge conflict update

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: skip unnecessary `inst.ReadTablet` in `logic.LockShard(...)`

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: use `errgroup` in keyspace/shard discovery

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix import

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix ineffassign

Signed-off-by: Tim Vaillancourt <[email protected]>

* missing import

Signed-off-by: Tim Vaillancourt <[email protected]>

* `vtorc`: add stats for discovery workers

Signed-off-by: Tim Vaillancourt <[email protected]>

* get count from backend

Signed-off-by: Tim Vaillancourt <[email protected]>

* rm unused map

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>

* Bp pr 17558 pr 17858.slack19.0 (#615)

* VReplication: Improve error handling in VTGate VStreams (vitessio#17558)

Signed-off-by: Tom Thornton <[email protected]>

* Backport vitessio#17858

---------

Signed-off-by: Tom Thornton <[email protected]>

* `slack-19.0`: re-backport tweaks from vitessio#17911 (#621)

* fix bug in reverse `if`

Signed-off-by: Tim Vaillancourt <[email protected]>

* simplify

Signed-off-by: Tim Vaillancourt <[email protected]>

* add `ReadTabletCountsByShard` test

Signed-off-by: Tim Vaillancourt <[email protected]>

* use map of map

Signed-off-by: Tim Vaillancourt <[email protected]>

* capitalize Cell

Signed-off-by: Tim Vaillancourt <[email protected]>

* gofmt lint

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix plural in names

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Malcolm Akinje <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tom Thornton <[email protected]>
Signed-off-by: Malcolm Akinje <[email protected]>
Co-authored-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>
Co-authored-by: Tom Thornton <[email protected]>

* Increase health check channel buffer (vitessio#17821) (#625)

Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Malcolm Akinje <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>

* VStream: Allow for automatic resume after Reshard across VStreams (vitessio#15393) (#627)

Signed-off-by: Tanjin Xu <[email protected]>
Co-authored-by: Matt Lord <[email protected]>

---------

Signed-off-by: Malcolm Akinje <[email protected]>
Signed-off-by: Malcolm Akinje <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Eduardo J. Ortega U. <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Vicent Marti <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Vicent Martí <[email protected]>
Signed-off-by: Jun Wang <[email protected]>
Signed-off-by: Tom Thornton <[email protected]>
Signed-off-by: Renan Rangel <[email protected]>
Signed-off-by: Tanjin Xu <[email protected]>
Co-authored-by: Tanjin Xu <[email protected]>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Eduardo J. Ortega U. <[email protected]>
Co-authored-by: Tim Vaillancourt <[email protected]>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Co-authored-by: Manan Gupta <[email protected]>
Co-authored-by: Vicent Martí <[email protected]>
Co-authored-by: Harshit Gangal <[email protected]>
Co-authored-by: Tom Thornton <[email protected]>
Co-authored-by: jwang <[email protected]>
Co-authored-by: Jun Wang <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>
Co-authored-by: Renan Rangel <[email protected]>
Co-authored-by: Matt Lord <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Binlog Timestamp Watermarking for VStream

4 participants