clickhouse-go v2.4.3 Release Notes

Release Date: 2022-11-30 // over 1 year ago
  • ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix in batch concurrency - batch could panic if used in separate go routines. ๐Ÿš€ The issue was originally detected due to the use of a batch in a go routine and Abort being called after the connection was released on the batch. This would invalidate the connection which had been subsequently reassigned. ๐Ÿš€ This issue could occur as soon as the conn is released (this can happen in a number of places e.g. after Send or an Append error), and it potentially returns to the pool for use in another go routine. Subsequent releases could then occur e.g., the user calls Abort mainly but also Send would do it. The result is the connection being closed in the release function while another batch or query potentially used it. ๐Ÿš€ This release includes a guard to prevent release from being called more than once on a batch. It assumes that batches are not thread-safe - they aren't (only connections are).

Previous changes from v2.4.2

  • ๐Ÿ› Bug Fixes

    • Don't panic on Send() on batch after invalid Append. #830
    • ๐Ÿ›  Fix JSON issue with nil if column order is inconsisent. #824