[
https://issues.apache.org/jira/browse/HADOOP-7931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171201#comment-13171201
]
Aaron T. Myers commented on HADOOP-7931:
----------------------------------------
bq. Aaron, why not just move the static initialization to ipc.Server. Then
there is not need to make a call ensureInitialized() right?
Because presumably o.a.h.ipc.Server is supposed to be independent of underlying
{{RpcEngine}} implementations, which is why there's a
{{resgisterProtocolEngine}} method in the first place. If that's not in fact a
design goal, then sure, adding the initialization to {{ipc.Server}} is fine.
> o.a.h.ipc.WritableRpcEngine should have a way to force initialization
> ---------------------------------------------------------------------
>
> Key: HADOOP-7931
> URL: https://issues.apache.org/jira/browse/HADOOP-7931
> Project: Hadoop Common
> Issue Type: Bug
> Components: ipc
> Affects Versions: 0.24.0
> Reporter: Aaron T. Myers
> Assignee: Aaron T. Myers
> Attachments: HADOOP-7931.patch
>
>
> {{WritableRpcEngine}} currently relies on a static initializer to register
> itself with {{o.a.h.ipc.Server}} as a valid {{RpcKind}}. There should be a
> way to ensure this initialization has already occurred.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira