Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.2.2 BACKPORT] Enable instance tracking by default for NLC builds #19278

Merged
merged 2 commits into from Aug 6, 2021

Conversation

mmedenjak
Copy link
Contributor

@mmedenjak mmedenjak commented Aug 6, 2021

Instance tracking should be on by default, but only for NLC builds. The
field is set to true by the constructor but we need to introduce
additional changes to prevent instance tracking of being disabled even
though the user didn't add any configuration:

  • we need to remove instances tracking config from both XML and YAML
    default config files
  • we need to prevent setting the enabled field unless there is content
    found for the "enabled" field. Otherwise, even an empty instance
    tracking config could be parsed by YAML parser, and it would disable
    instance tracking
  • also, NLC builds don't have a default file name and it should be
    explicitly set. Non-NLC builds use the default file name.

Fixes: https://github.com/hazelcast/hazelcast-enterprise/issues/4166
EE: https://github.com/hazelcast/hazelcast-enterprise/pull/4196
Backport of: #19250

Instance tracking should be on by default, but only for NLC builds. The
field is set to true by the constructor but we need to introduce
additional changes to prevent instance tracking of being disabled even
though the user didn't add any configuration:
- we need to remove instances tracking config from both XML and YAML
default config files
- we need to prevent setting the enabled field unless there is content
found for the "enabled" field. Otherwise, even an empty instance
tracking config could be parsed by YAML parser, and it would disable
instance tracking
- also, NLC builds don't have a default file name and it should be
explicitly set. Non-NLC builds use the default file name.

Fixes: https://github.com/hazelcast/hazelcast-enterprise/issues/4166
- made tests use small instances
- addressed review comments
@mmedenjak mmedenjak added Type: Enhancement Team: Core Source: Internal PR or issue was opened by an employee labels Aug 6, 2021
@mmedenjak mmedenjak added this to the 4.2.2 milestone Aug 6, 2021
@mmedenjak mmedenjak changed the title [FORWARD-PORT] Enable instance tracking by default for NLC builds [BACKPORT] Enable instance tracking by default for NLC builds Aug 6, 2021
@mmedenjak mmedenjak changed the title [BACKPORT] Enable instance tracking by default for NLC builds [4.2.2 BACKPORT] Enable instance tracking by default for NLC builds Aug 6, 2021
@mmedenjak mmedenjak merged commit c38011e into hazelcast:4.2.2 Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants