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

kafka.go: Refine log #778

Merged
merged 4 commits into from
Oct 29, 2019
Merged

kafka.go: Refine log #778

merged 4 commits into from
Oct 29, 2019

Conversation

july2993
Copy link
Contributor

What problem does this PR solve?

refine log.

What is changed and how it works?

log fatal instead of panic(err), so user can know what really happen
instead of like drainer restart by some unknown reason before check
stderr.

Check List

Tests

log fatal instead of panic(err), so user can know what really happen
instead of like drainer restart by some unknown reason before check
stderr.
Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

LGTM.

It is still expected that Kafka error should kill Drainer, right?

@july2993
Copy link
Contributor Author

LGTM.

It is still expected that Kafka error should kill Drainer, right?

yes

@july2993
Copy link
Contributor Author

/rebuild

@july2993
Copy link
Contributor Author

/run-all-tests

3 similar comments
@glorv
Copy link
Contributor

glorv commented Oct 23, 2019

/run-all-tests

@july2993
Copy link
Contributor Author

/run-all-tests

@sykp241095
Copy link
Member

/run-all-tests

@sykp241095
Copy link
Member

/build

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

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

LGTM

suzaku
suzaku previously approved these changes Oct 23, 2019
before update will:
./tools/check/check-tidy.sh
go: downloading gopkg.in/stretchr/testify.v1 v1.4.0
github.com/pingcap/tidb-binlog/drainer imports
        github.com/pingcap/tidb/store/tikv imports
        github.com/twinj/uuid tested by
        github.com/twinj/uuid.test imports
        gopkg.in/stretchr/testify.v1/assert: go.mod has non-....v1 module path "github.com/stretchr/testify" at revision v1.4.0
make: *** [tidy] Error 1
@july2993
Copy link
Contributor Author

/run-all-tests

@july2993
Copy link
Contributor Author

/build

@july2993
Copy link
Contributor Author

/run-all-tests

try drop dep of:
go: github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead:
invalid pseudo-version: does not match version-control timestamp
(2019-02-10T22:04:43Z)
@@ -65,8 +65,7 @@ func InitLogger(level string, file string) error {
cfg := &log.Config{
Level: level,
File: log.FileLogConfig{
Filename: file,
LogRotate: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no any affect field in older version and is removed now.

@july2993
Copy link
Contributor Author

/run-all-tests

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

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

LGTM

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

/run-all-tests

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

@july2993 merge failed.

@july2993
Copy link
Contributor Author

/merge

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

/run-all-tests

@sre-bot sre-bot merged commit cd006ab into pingcap:master Oct 29, 2019
@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-3.0 failed

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-3.1 failed

@july2993 july2993 deleted the hjh/kafka_log branch October 29, 2019 07:57
july2993 added a commit to july2993/tidb-binlog that referenced this pull request Oct 29, 2019
july2993 added a commit to july2993/tidb-binlog that referenced this pull request Oct 29, 2019
july2993 added a commit to july2993/tidb-binlog that referenced this pull request Oct 29, 2019
sre-bot pushed a commit that referenced this pull request Oct 30, 2019
sre-bot pushed a commit that referenced this pull request Oct 30, 2019
sre-bot pushed a commit that referenced this pull request Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants