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.

Double reload with local file and autoUpdate=true #138

Description

@scinos

When reading FeatureFlags form a local file and using autoUpdate, it seems to reload it multiple times.

After saving the file once (with no actual changes on the content of the file), I got

dev_1          | [2019-02-15T01:36:18.712Z]  WARN: ins/41 on ad5a8c3d9e47: Reloaded flags from file data (timestamp=2019-02-15T01:36:18.712Z)
dev_1          | [2019-02-15T01:36:18.715Z]  WARN: ins/41 on ad5a8c3d9e47: Reloaded flags from file data (timestamp=2019-02-15T01:36:18.715Z)

Some times I even get 3 or 4 reloads.

Relevant code:

const config = {
    logger,
};

if (LAUNCHDARKLY_SDK === 'local') {
    config.sendEvents = false;
    config.updateProcessor = LaunchDarkly.FileDataSource({ paths: [localOverridePath], autoUpdate: true });
}

ldClient = LaunchDarkly.init(LAUNCHDARKLY_SDK, config);
return ldClient.waitForInitialization();

Versions:

ldclient-node version 5.7.1
Node version 10.15.1 running inside a Docker container
Docker version 18.09.1, build 4c52b90
OSX version 10.14.3 (18D109)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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