Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddl, metrics: add worker info to the log #7201

Merged
merged 3 commits into from
Aug 3, 2018
Merged

Conversation

zimulala
Copy link
Contributor

What have you changed? (mandatory)

Add worker info to the log.
[ddl] -> [ddl-worker 0, tp general]

What is the type of the changes? (mandatory)

  • Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)

No.

Does this PR affect documentation (docs/docs-cn) update? (mandatory)

No.

Does this PR affect tidb-ansible update? (mandatory)

No.

Does this PR need to be added to the release notes? (mandatory)

No.

Refer to a related PR or issue link (optional)

Benchmark result if necessary (optional)

Add a few positive/negative examples (optional)

@zimulala
Copy link
Contributor Author

/run-all-tests

}

// start is used for async online schema changing, it will try to become the owner firstly,
// then wait or pull the job queue to handle a schema change job.
func (w *worker) start(d *ddlCtx) {
log.Infof("[ddl] start DDL worker %s", w)
log.Infof("[ddl-%s] start DDL worker", w)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think keeping the previous format is better. What is the difference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

[ddl] -> [ddl-worker 0, tp general]

Copy link
Contributor

Choose a reason for hiding this comment

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

So what is the problem with the previous log?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Other places need to add [ddl-worker 0, tp general]. I want to unify the log, so do it.

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp jackysp added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 1, 2018
@zimulala
Copy link
Contributor Author

zimulala commented Aug 2, 2018

@@ -91,7 +91,7 @@ var (
}, []string{LblType, LblResult})

CreateDDLInstance = "create_ddl_instance"
CreateDDLWorker = "create_ddl_worker"
CreateDDL = "create_ddl"
Copy link
Contributor

@ciscoxll ciscoxll Aug 2, 2018

Choose a reason for hiding this comment

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

Why change this.

@ciscoxll
Copy link
Contributor

ciscoxll commented Aug 2, 2018

LGTM

1 similar comment
@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added status/LGT3 The PR has already had 3 LGTM. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 3, 2018
@zz-jason zz-jason merged commit 30a6cc3 into pingcap:master Aug 3, 2018
@zimulala zimulala deleted the ddl-log branch August 6, 2018 07:00
@you06 you06 added the sig/sql-infra SIG: SQL Infra label Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra status/LGT3 The PR has already had 3 LGTM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants