[improve][broker]Part-3 of PIP-433: always allow replicator to register a new compatible schema#25461
Conversation
…er a new compatible schema
|
@poorbarcode @codelipenghui When geo-replicator creates a remote producer in the broker, it indeed carries the replicator's producer name and uses Schema.AUTO_PRODUCE_BYTES(). But the key point of AUTO_PRODUCE_BYTES is: when establishing a producer connection, it doesn't send the "specific schema of this message" all at once. The actual specific schema registration happens later during the message sending process, when encountering a new schema, it then triggers GET_OR_CREATE_SCHEMA. This call chain looks like this locally:
|
Motivation
This is part-3 of PIP-433, see the goal 1 in PIP-433
Modifications
always allow the replicator to register a new compatible schema, users can turn off this function
Documentation
docdoc-requireddoc-not-neededdoc-complete