Skip to content

Cancel statement don’t work due to “Session is locked by a concurrent client” (0.3.2-patch11) #1033

@Veirisa

Description

@Veirisa

Hi!

I'm unable to cancel a statement using the cancel() method if session_id is set.

I had the same problem with the driver v0.3.1, however, there it was possible to set the SESSION_ID to null for the ru.yandex.clickhouse.ClickHouseStatementImpl statement before cancelling with ru.yandex.clickhouse.ConfigurableApi#addDbParam.

With a new driver, a similar approach with the com.clickhouse.jdbc.internal.ClickHouseStatementImpl statement does not help.
I tried to remove session_id from CUSTOM_PARAMS using com.clickhouse.client.ClickHouseRequest#option, however, this is not enough.

I need your help.
Tell me, please, how can I reset the session_id in the driver v0.3.2? Or is there another way to make cancel() work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions