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

Introduced system property to provide backward #13501

Merged

Conversation

ahmetmircik
Copy link
Member

compatible event firing behavior for map#loadAll.

When compatibility mode is on loadAll will fire ADD events,
when off, it will fire LOADED event. By default LOADED events
will be fired.

@ahmetmircik ahmetmircik added this to the 3.11 milestone Jul 27, 2018
@ahmetmircik ahmetmircik force-pushed the fix/3.11/entryLoadedCompatibility branch from 1a3f5d5 to 55b6b3e Compare July 27, 2018 20:49
@@ -72,6 +73,9 @@
@SuppressWarnings("WeakerAccess")
public class MapContainer {

public static final HazelcastProperty LOAD_ALL_PUBLISHES_ADD_EVENT
Copy link
Contributor

Choose a reason for hiding this comment

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

When should this property be enabled? How does an end user know this property needs to be set?

Copy link
Member Author

Choose a reason for hiding this comment

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

Intention is to provide a soft pass. Because firing LOADED events upon loadAll call is not a backward compatible change. This system property can be removed in 4.0. Doc update is needed to inform user.

@@ -140,11 +146,16 @@ public MapContainer(final String name, final Config config, final MapServiceCont
} else {
this.globalIndexes = null;
}
this.addEventPublishingEnabled = nodeEngine.getProperties().getBoolean(LOAD_ALL_PUBLISHES_ADD_EVENT);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we switch to nodeEngine.getProperties().getBoolean(LOAD_ALL_PUBLISHES_ADD_EVENT) and have it in group properties?

@@ -72,6 +73,9 @@
@SuppressWarnings("WeakerAccess")
public class MapContainer {

public static final HazelcastProperty LOAD_ALL_PUBLISHES_ADD_EVENT
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add some javadoc for the property?

@ahmetmircik ahmetmircik force-pushed the fix/3.11/entryLoadedCompatibility branch 3 times, most recently from d353b2e to 46431c1 Compare August 6, 2018 22:10
Copy link
Contributor

@mmedenjak mmedenjak left a comment

Choose a reason for hiding this comment

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

Consider just moving the property to GroupProperty with the rest

@taburet taburet self-requested a review August 9, 2018 10:37
@ahmetmircik ahmetmircik force-pushed the fix/3.11/entryLoadedCompatibility branch 2 times, most recently from fab543e to f0d6cff Compare August 17, 2018 21:49
compatible event firing behavior for map#loadAll.

When compatibility mode is on loadAll will fire ADD events,
when off, it will fire LOADED event. By default LOADED events
will be fired.
@ahmetmircik ahmetmircik force-pushed the fix/3.11/entryLoadedCompatibility branch from f0d6cff to 5f5dec6 Compare August 17, 2018 21:50
@ahmetmircik ahmetmircik merged commit bb8ffe3 into hazelcast:master Aug 18, 2018
@ahmetmircik ahmetmircik deleted the fix/3.11/entryLoadedCompatibility branch August 18, 2018 09:10
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 13, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants