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

Enable instance tracking by default for NLC builds #19250

Merged
merged 2 commits into from Aug 6, 2021

Conversation

mmedenjak
Copy link
Contributor

@mmedenjak mmedenjak commented Aug 2, 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/4182

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
@mmedenjak mmedenjak added Type: Enhancement Team: Core Source: Internal PR or issue was opened by an employee labels Aug 2, 2021
@mmedenjak mmedenjak added this to the 4.2.2 milestone Aug 2, 2021
- made tests use small instances
- addressed review comments
@mmedenjak mmedenjak requested review from blazember and emre-aydin and removed request for kwart August 4, 2021 13:22
Copy link
Contributor

@blazember blazember left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Core Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants