go-graphite / carbon-clickhouse

Graphite metrics receiver with ClickHouse as storage
MIT License
187 stars 49 forks source link

Optimize/Fix some in uploader index #107

Closed msaf1980 closed 2 years ago

msaf1980 commented 2 years ago
  1. Avoid double write in index parseFile (becouse RowBinary write buffer not reset after write before write daily index)
  2. Check for buffer overflow in index parseFile (for prevent panic, like uploader tags, see https://github.com/go-graphite/carbon-clickhouse/pull/93). See https://github.com/go-graphite/carbon-clickhouse/blob/52a2297d5c383edefd8279073d201e7778e8806c/uploader/index.go#L130