[ https://issues.apache.org/jira/browse/GEODE-9627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17428526#comment-17428526 ]
ASF subversion and git services commented on GEODE-9627: -------------------------------------------------------- Commit 567460f627ba637d1b2783396de5b6374502473b in geode's branch refs/heads/develop from Jens Deppe [ https://gitbox.apache.org/repos/asf?p=geode.git;h=567460f ] GEODE-9627: Add service provider interface to register DataSerializableFixedIDs (#6891) - This introduces a new SPI for registering DataSerializableFixedIDs. Any new module should use this mechanism which allows for fixed Ids to be registered when the JVM first starts up. Fixed Ids cannot be unregistered and attempting to re-register a fixed Id will result in an exception on startup. - In order to implement this SPI one needs to provide a service loader file - resources/META-INF/services/org.apache.geode.internal.serialization.DataSerializableFixedIdRegistrant. This file should contain the fully qualified name of a class which implements DataSerializableFixedIdRegistrant. Examples can be seen in the WAN, Lucene and Redis modules. > Add service loader interface to register DataSerializableFixedIDs > ----------------------------------------------------------------- > > Key: GEODE-9627 > URL: https://issues.apache.org/jira/browse/GEODE-9627 > Project: Geode > Issue Type: Improvement > Components: core, lucene, redis > Affects Versions: 1.15.0 > Reporter: Jens Deppe > Assignee: Jens Deppe > Priority: Major > Labels: pull-request-available > Fix For: 1.15.0 > > > External modules that require registering DataSerializableFixedIDs typically > do so as part of their service loading initialization step. However, it seems > that under some circumstances it may be necessary to have the DSFIDs be > available even before the service is loaded as peers may be sending DSFID > values even as a member is just starting up. Thus the DSFID should be made > available even before a member is available to receive peer messages. > This change introduces a service loader interface, {{DSFIDLoader}} which is > called as part of the static initialization block in > {{InternalDataSerializer}}. This will ensure that all reguired DSFIDs are > available almost as soon as the JVM starts. > This work is related to GEODE-9618 -- This message was sent by Atlassian Jira (v8.3.4#803005)