Skip to content

Possible memory leak when driver fails to connect due to failed auth #152

@vlymar

Description

@vlymar

I was rotating my clickhouse password and there was a period of time during which my application didn't have the new db password, so connections were failing. At the same exact time, we saw a huge memory leak, up until the application was restarted with the correct password. Same pattern was reproduced a second time in another environment. There were corresponding logs about auth failures, presumably from ch/ecto reattempting to establish the connection. I'm 90% sure that during this time all read and write ops were disabled, so i think ecto or the driver itself was just trying to re-establish connections for the pool.

CleanShot 2024-01-26 at 14 21 49@2x

I'm not certain if this is the ch driver, ecto, or something else, so apologies if it's not in the driver. Just wanted to flag it in case anyone has intuition on the cause.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions