Skip to content

SNOW-2881611: Heartbeat is not using CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY parameter returned by server #1287

@duyang76

Description

@duyang76

Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!

  1. What version of .NET driver are you using?
    5.1.0

  2. What operating system and processor architecture are you using?
    win x64

  3. What version of .NET framework are you using?
    .Net 6

  4. What did you do?
    I set CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY to 900 at USER level and connect with "CLIENT_SESSION_KEEP_ALIVE=TRUE", but Hearbeat still happens every hour

  5. What did you expect to see?
    Hearbeat happens every 15m

  6. Can you set logging to DEBUG and collect the logs?
    This is the log showing that the connection is idled for 1h before heartbeat

[2025-12-04 00:32:19] [1] [DEBUG] [Snowflake.Data.Core.QueryContextCache] checkCacheCapacity() returns. cacheSet size 1 cache capacity 5
null
[2025-12-04 00:32:19] [1] [DEBUG] [Snowflake.Data.Core.QueryContextCache] Cache Entry: id: 0 readTimestamp: 1764826339682179 priority: 0
null
[2025-12-04 01:32:19] [20] [DEBUG] [Snowflake.Data.Core.SFSession] heartbeat
null

Metadata

Metadata

Labels

enhancementThe issue is a request for improvement or a new featurestatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions