You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// means there are currently no more clients interested in heartbeats
w.enableWrites(false)
}
w.allowNextHeartbeatRequest()
})
After that, there is nothing to request on-demand heartbeats, so no further heartbeats are written.
On the other tablets, --heartbeat_enable enables heartbeat read ticks, which read the same timestamp over and over again after step 3. above.
The /debug/status consults that lag time, so those tablets lag.
The throttler is the only thing in the code base I can see that requests on-demand heartbeats, and as far as I can see it's not enabled in the local examples.
Reproduction Steps
Checkout main
. ./env and make build
cd examples/local, . ../common/env.sh and ./101_initial_cluster.sh
Open the VTTablet /debug/status for the @replica and @rdonly tablets
Observe replica lag increase and increase
Binary Version
./bin/vttablet --version
vttablet version Version: 19.0.0-SNAPSHOT (Git revision 1b328bffb853ed08da621a7d144a01e06a6cf8d3 branch 'main') built on Wed Jan 17 20:03:05 EST 2024 by [email protected] using go1.21.0 darwin/arm64
Operating System and Environment details
* Mac OS Sonoma 14.2.1
* Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64
* arm64
Log Fragments
No response
The text was updated successfully, but these errors were encountered:
Overview of the Issue
The
@replica
and@rdonly
tablet inexamples/local/101_initial_cluster.sh
lag after startup and continue lagging.I was able to "fix" this by removing
--heartbeat_enable
fromexamples/common/scripts/vttablet-up.sh
, but I don't know if that's a real fix.I'm not entirely sure what the goal for heartbeating is in the local examples, but looking through the code, I think what happens is:
vitess/go/vt/vttablet/tabletserver/repltracker/writer.go
Lines 141 to 144 in 1b328bf
vitess/go/vt/vttablet/tabletserver/repltracker/writer.go
Lines 336 to 348 in 1b328bf
--heartbeat_enable
enables heartbeat read ticks, which read the same timestamp over and over again after step 3. above./debug/status
consults that lag time, so those tablets lag.The throttler is the only thing in the code base I can see that requests on-demand heartbeats, and as far as I can see it's not enabled in the local examples.
Reproduction Steps
main
. ./env
andmake build
cd examples/local
,. ../common/env.sh
and./101_initial_cluster.sh
/debug/status
for the@replica
and@rdonly
tabletsBinary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: