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

java.nio.BufferOverflowException native jdbc version 2.6.4. #434

Open
Mr-Zhaoli opened this issue Feb 10, 2023 · 0 comments
Open

java.nio.BufferOverflowException native jdbc version 2.6.4. #434

Mr-Zhaoli opened this issue Feb 10, 2023 · 0 comments

Comments

@Mr-Zhaoli
Copy link

Environment

这个异常我看之前也有人提到过,但是没确定根因。
当使用场景是重复使用一个preparedstatement时,可能会有这种调用顺序
1.ColumnWriterBuffer invoke buffer.limit(buffer.position()); :
image
2.ByteArrayWriter invoke writeBinary(byte byt):
image
由于第二步未对容量进行校验,第一步的buffer经过limit后,容量可能为0,导致触发这个问题。

  • OS version:
  • JDK version:
  • ClickHouse Server version:
  • ClickHouse Native JDBC version:
  • (Optional) Spark version: N/A
  • (Optional) Other components' version: N/A

Error logs

paste your error logs here

Steps to reproduce

Other descriptions

@dmitrybugakov dmitrybugakov self-assigned this Sep 26, 2023
@dmitrybugakov dmitrybugakov removed their assignment Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants