Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed May 30, 2024
1 parent 932d5da commit cbe8a9d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions changelog/20.0/20.0.0/summary.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

## Summary

### Table of Contents
Expand Down Expand Up @@ -33,7 +34,7 @@
- [New `healthcheck-dial-concurrency` flag](#healthcheck-dial-concurrency-flag)
- [New minimum for `--buffer_min_time_between_failovers`](#buffer_min_time_between_failovers-flag)
- [New `track-udfs` vtgate flag](#vtgate-track-udfs-flag)
- [Documentation fix for `--lock-timeout`](#documentation-lock-timeout)
- [Help text fix for `--lock-timeout`](#documentation-lock-timeout)
- **[Minor Changes](#minor-changes)**
- **[New Stats](#new-stats)**
- [VTTablet Query Cache Hits and Misses](#vttablet-query-cache-hits-and-misses)
Expand Down Expand Up @@ -334,9 +335,9 @@ The `--buffer_min_time_between_failovers` `vttablet` flag now has a minimum valu

The new `--track-udfs` flag enables VTGate to track user defined functions for better planning.

#### <a id="documentation-lock-timeout"/>Documentation fix for `--lock-timeout`
#### <a id="documentation-lock-timeout"/>Help text fix for `--lock-timeout`

The documentation for the flag `--lock-timeout` was noticed to be incorrect. We were documenting it as a flag that controlled the duration for which the shard lock was acquired for. It is actually the duration for which we wait while acquiring a lock from the topology server.
The help text for the flag `--lock-timeout` was incorrect. We were documenting it as a flag that controlled the duration for which the shard lock was acquired. It is actually the maximum duration for which we wait while attempting to acquire a lock from the topology server.

## <a id="minor-changes"/>Minor Changes

Expand Down
2 changes: 1 addition & 1 deletion go/flags/endtoend/vtbackup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Flags:
--keep-alive-timeout duration Wait until timeout elapses after a successful backup before shutting down.
--keep_logs duration keep logs for this long (using ctime) (zero to keep forever)
--keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
--lock-timeout duration Maximum time to wait for while acquiring a lock from the topo server (default 45s)
--lock-timeout duration Maximum time to wait when attempting to acquire a lock from the topo server (default 45s)
--log_backtrace_at traceLocations when logging hits line file:N, emit a stack trace
--log_dir string If non-empty, write log files in this directory
--log_err_stacks log stack traces for errors
Expand Down
2 changes: 1 addition & 1 deletion go/flags/endtoend/vtcombo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Flags:
--keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
--keyspaces_to_watch strings Specifies which keyspaces this vtgate should have access to while routing queries or accessing the vschema.
--lameduck-period duration keep running at least this long after SIGTERM before stopping (default 50ms)
--lock-timeout duration Maximum time to wait for while acquiring a lock from the topo server (default 45s)
--lock-timeout duration Maximum time to wait when attempting to acquire a lock from the topo server (default 45s)
--lock_heartbeat_time duration If there is lock function used. This will keep the lock connection active by using this heartbeat (default 5s)
--lock_tables_timeout duration How long to keep the table locked before timing out (default 1m0s)
--log_backtrace_at traceLocations when logging hits line file:N, emit a stack trace
Expand Down
2 changes: 1 addition & 1 deletion go/flags/endtoend/vtctld.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Flags:
--keep_logs duration keep logs for this long (using ctime) (zero to keep forever)
--keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
--lameduck-period duration keep running at least this long after SIGTERM before stopping (default 50ms)
--lock-timeout duration Maximum time to wait for while acquiring a lock from the topo server (default 45s)
--lock-timeout duration Maximum time to wait when attempting to acquire a lock from the topo server (default 45s)
--log_backtrace_at traceLocations when logging hits line file:N, emit a stack trace
--log_dir string If non-empty, write log files in this directory
--log_err_stacks log stack traces for errors
Expand Down
2 changes: 1 addition & 1 deletion go/flags/endtoend/vtgate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Flags:
--keyspaces_to_watch strings Specifies which keyspaces this vtgate should have access to while routing queries or accessing the vschema.
--lameduck-period duration keep running at least this long after SIGTERM before stopping (default 50ms)
--legacy_replication_lag_algorithm Use the legacy algorithm when selecting vttablets for serving. (default true)
--lock-timeout duration Maximum time to wait for while acquiring a lock from the topo server (default 45s)
--lock-timeout duration Maximum time to wait when attempting to acquire a lock from the topo server (default 45s)
--lock_heartbeat_time duration If there is lock function used. This will keep the lock connection active by using this heartbeat (default 5s)
--log_backtrace_at traceLocations when logging hits line file:N, emit a stack trace
--log_dir string If non-empty, write log files in this directory
Expand Down
2 changes: 1 addition & 1 deletion go/flags/endtoend/vtorc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Flags:
--keep_logs duration keep logs for this long (using ctime) (zero to keep forever)
--keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
--lameduck-period duration keep running at least this long after SIGTERM before stopping (default 50ms)
--lock-timeout duration Maximum time to wait for while acquiring a lock from the topo server (default 45s)
--lock-timeout duration Maximum time to wait when attempting to acquire a lock from the topo server (default 45s)
--log_backtrace_at traceLocations when logging hits line file:N, emit a stack trace
--log_dir string If non-empty, write log files in this directory
--log_err_stacks log stack traces for errors
Expand Down
2 changes: 1 addition & 1 deletion go/flags/endtoend/vttablet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Flags:
--keep_logs duration keep logs for this long (using ctime) (zero to keep forever)
--keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
--lameduck-period duration keep running at least this long after SIGTERM before stopping (default 50ms)
--lock-timeout duration Maximum time to wait for while acquiring a lock from the topo server (default 45s)
--lock-timeout duration Maximum time to wait when attempting to acquire a lock from the topo server (default 45s)
--lock_tables_timeout duration How long to keep the table locked before timing out (default 1m0s)
--log_backtrace_at traceLocations when logging hits line file:N, emit a stack trace
--log_dir string If non-empty, write log files in this directory
Expand Down
2 changes: 1 addition & 1 deletion go/vt/topo/locks.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func init() {

func registerTopoLockFlags(fs *pflag.FlagSet) {
fs.DurationVar(&RemoteOperationTimeout, "remote_operation_timeout", RemoteOperationTimeout, "time to wait for a remote operation")
fs.DurationVar(&LockTimeout, "lock-timeout", LockTimeout, "Maximum time to wait for while acquiring a lock from the topo server")
fs.DurationVar(&LockTimeout, "lock-timeout", LockTimeout, "Maximum time to wait when attempting to acquire a lock from the topo server")
}

// newLock creates a new Lock.
Expand Down

0 comments on commit cbe8a9d

Please sign in to comment.