Skip to content

1.0.3: Setting replication.max_lag_secs in YAML-config causes Replset:find_secondary to have score '0' for all nodes #177

@timvaillancourt

Description

@timvaillancourt

When setting config-file the field on release 1.0.3:

production:
  ...
  replication:
    max_lag_secs: <num>
  ...

All nodes receive a score of '0' and are then chosen at random. This is incorrect as (of course) the scoring of secondaries should not be zero.

EDIT: this may be a polymorphism problem and the int is being considered to be a string. Check that the config value field becomes an int the code is able to compare.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions