-
Notifications
You must be signed in to change notification settings - Fork 353
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
feat: add clickhouse flusher (#554) #580
Conversation
好好休息,保重身体,祝早日康复。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
088612d
to
6fbdf67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 必要的license加一下
- e2e测试没通过,需要修改一下
525c622
to
ee12739
Compare
我在本地执行 但是该依赖是由 #603 合并到主分支产生的 我这边是有什么操作不对吗?执行 |
79f027a
to
7dc4906
Compare
test目录下go mod tidy一下先 |
本地运行 在增加 converter 之前未出现该报错,现有的 init 方法这边有什么写错的地方吗? https://github.com/kl7sn/ilogtail/blob/flusher-clickhouse/test/engine/subscriber/clickhouse.go#L185 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
麻烦问下你本地的go版本是多少?修改test包的时候可以重新以test目录为根目录打开编辑器,这样一些错误提示应该正常显示
f0c3252
to
7478b85
Compare
Signed-off-by: kl7sn <mex7.0828@gmail.com>
Signed-off-by: kl7sn <mex7.0828@gmail.com>
Signed-off-by: kl7sn <mex7.0828@gmail.com>
Signed-off-by: kl7sn <mex7.0828@gmail.com>
Signed-off-by: kl7sn <mex7.0828@gmail.com>
Signed-off-by: kl7sn <mex7.0828@gmail.com>
Signed-off-by: kl7sn <mex7.0828@gmail.com>
84f4580
to
8bebe12
Compare
// post them to db all at once, build statements | ||
batch, err := f.conn.PrepareBatch(ctx, sql) | ||
if err != nil { | ||
return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否需要打印error,外层是FLUSH_DATA_ALARM,但如果这里不打日志会缺少具体错误调用点
} | ||
} | ||
// commit and record metrics | ||
if err = batch.Send(); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要return err吗
func (f *FlusherClickHouse) BufferFlush(projectName string, logstoreName string, configName string, logGroupList []*protocol.LogGroup) error { | ||
ctx := context.Background() | ||
sql := fmt.Sprintf(insertSQL, f.Authentication.PlainText.Database, f.Table) | ||
for _, logGroup := range logGroupList { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果一部分flush成功一部分失败了,似乎不能处理得很好
commit 66daff1 Author: Tom Yu <yyuuttaaoo@gmail.com> Date: Mon Feb 13 16:49:29 2023 +0800 Grok processor report match errors by default (alibaba#645) * close alibaba#644, grok report match errors on default meanwhile change pure plugin LogtailSysConfDir to current dir fix plugin version in logs by using ldflag to set go plugin version
No description provided.