Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Upgrade from 6.2.1 to 6.2.2 results in process hanging #264

@sprak3000

Description

@sprak3000

I was initialing attempting to upgrade from 6.2.1 of the SDK up to 6.4.3 but found it would hang my service after making a successful call to LD. Gradually backed down versions to find an upgrade to 6.2.2 results in the same behavior. A successful run under 6.2.1 results in these logs:

info: [LaunchDarkly] Initializing stream processor to receive feature flag updates
{"http":{"status_code":202},"level":"info","message":"POST events.launchdarkly.com","request":{"body":{"configuration":{"allAttributesPrivate":false,"connectTimeoutMillis":5000,"customBaseURI":false,"customEventsURI":false,"customStreamURI":false,"dataStoreType":"custom","diagnosticRecordingIntervalMillis":900000,"eventsCapacity":10000,"eventsFlushIntervalMillis":5000,"inlineUsersInEvents":false,"offline":false,"pollingIntervalMillis":30000,"reconnectTimeMillis":1000,"socketTimeoutMillis":5000,"streamingDisabled":false,"userKeysCapacity":1000,"userKeysFlushIntervalMillis":300000,"usingProxy":false,"usingProxyAuthenticator":false,"usingRelayDaemon":false},"creationDate":1668879868734,"id":{"diagnosticId":"<redacted>","sdkKeySuffix":"<redacted>"},"kind":"diagnostic-init","platform":{"name":"Node","nodeVersion":"18.12.1","osArch":"x64","osName":"MacOS","osVersion":"22.1.0"},"sdk":{"name":"node-server-sdk","version":"6.2.1"}},"headers":{"authorization":"*****","content-type":"application/json","host":"events.launchdarkly.com","user-agent":"NodeJSClient/6.2.1","x-datadog-parent-id":"<redacted>","x-datadog-sampling-priority":"1","x-datadog-tags":"_dd.p.dm=-0","x-datadog-trace-id":"<redacted>"}},"response":{"body":"","headers":{"connection":"close","content-length":"0","content-type":"application/json","date":"Sat, 19 Nov 2022 17:44:28 GMT","strict-transport-security":"max-age=31536000"}},"tags":{"graphql_node":"","method":"POST","operation":"REST","protocol":"https:","type":"outbound request","url":"/diagnostic"},"timestamp":"2022-11-19T17:44:28.775Z"}
info: [LaunchDarkly] Opened LaunchDarkly stream connection

When I run under 6.2.2, I receive the first two logs saying it is initializing the stream and the successful response but do not see the opened stream connection log ever appear. The request to my service just hangs until I cancel it. I have a different service that is using 6.4.3 of the service with no issue. Only difference I can find between them is the 6.4.3 service also uses the Redis feature store from launchdarkly-node-server-sdk-redis. Otherwise, I can't find any difference between them causing the discrepancy in behavior.

Feels like something subtle, maybe another dependency or something interfering. Hoping someone might have some insight here.

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