You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Since handleLiCombinedControlRequest() calls us directly (bypassing handleUpdateMetadataRequest() and its
325
-
// stale broker-epoch check), this seems like the most appropriate place for the new federation "router" to
326
-
// live: rest of (original) method is the legacy "broker half" logic.
327
-
if (!config.liFederationEnable || clusterId.equals(updateMetadataRequest.originClusterId) || clusterId.equals(updateMetadataRequest.routingClusterId)) {
328
-
// This is either a local/legacy/non-federated request (from our ZK => originClusterId matches) or one our controller
329
-
// has already rewritten (received from a remote controller => routingClusterId matches), so do the normal,
330
-
// broker-half processing below.
331
-
// info(s"GRR DEBUG: brokerId=${brokerId} received updateMetadataRequest: controllerId=${updateMetadataRequest.controllerId}, originClusterId=${updateMetadataRequest.originClusterId}, routingClusterId=${updateMetadataRequest.routingClusterId}")
332
-
if (updateMetadataRequest.originClusterId !=null&& clusterId.equals(updateMetadataRequest.routingClusterId)) {
333
-
info(s"GRR DEBUG: local brokerId=${brokerId} in clusterId=${clusterId} received rewritten updateMetadataRequest from remote clusterId=${updateMetadataRequest.originClusterId}")
334
-
}
335
-
// [The following block is NOT properly indented in order to simplify upstream merges.]
336
-
337
-
338
-
info(s"GRR DEBUG: brokerId=${brokerId} calling maybeUpdateMetadataCache() with correlationId=${correlationId} and updateMetadataRequest from clusterId=${updateMetadataRequest.originClusterId}")
// [Federation only.] This is an incoming remote request (i.e., from another physical cluster in the federation),
369
-
// so hand it off to our controller half for validation, rewriting, and rerouting.
370
-
info(s"GRR DEBUG: local brokerId=${brokerId} in clusterId=${clusterId} received new updateMetadataRequest from remote controllerId=${updateMetadataRequest.controllerId} in clusterId=${updateMetadataRequest.originClusterId}; sending to controller for validation and rewrite")
371
-
controller.rewriteAndForwardRemoteUpdateMetadataRequest(updateMetadataRequest) // modifies UMR in place, returns response
372
-
// same method ^^^ stuffs the rewritten UMR into the processing queue, which lives in controller's
373
-
// ControllerEventManager (KafkaController's eventManager member var)
0 commit comments