Skip to content

Commit

Permalink
Merge 78ccf34 into a7aa964
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 authored Jul 17, 2023
2 parents a7aa964 + 78ccf34 commit 5d813c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cluster/spec/tiflash.go
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ func (i *TiFlashInstance) PrepareStart(ctx context.Context, tlsCfg *tls.Config)
func (i *TiFlashInstance) Ready(ctx context.Context, e ctxt.Executor, timeout uint64, tlsCfg *tls.Config) error {
// FIXME: the timeout is applied twice in the whole `Ready()` process, in the worst
// case it might wait double time as other components
if err := PortStarted(ctx, e, i.Port, timeout); err != nil {
if err := PortStarted(ctx, e, i.GetServicePort(), timeout); err != nil {
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/tidbver/tidbver.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TiFlashNotNeedHTTPPortConfig(version string) bool {
// and we must make sure the port is being configured as specified in the topology file,
// otherwise multiple TiFlash instances will conflict.
func TiFlashRequiresTCPPortConfig(version string) bool {
return semver.Compare(version, "v7.1.0") < 0
return semver.Compare(version, "v7.1.0") < 0 && !strings.Contains(version, "nightly")
}

// TiFlashNotNeedSomeConfig return if given version of TiFlash do not need some config like runAsDaemon
Expand Down

0 comments on commit 5d813c0

Please sign in to comment.