That is ... contextual, though; an unexpected sub-message can still,
depending on the implementation, be round-tripped and potentially even
inspected via reflection. It won't usually *break* code, just like adding
any new field. It really depends how strict you're being in you'd
definitions of compatibility.

On Sat, 4 Feb 2023, 18:57 Robert Yokota, <[email protected]> wrote:

> Hi Komal,
>
> Forward compatibility is broken as older consumers won't understand the
> new message.
>
> Regards,
> Robert
>
> On Fri, Feb 3, 2023 at 8:50 AM Komal Kamble <[email protected]>
> wrote:
>
>> Hello Robert,
>>
>> Could you please elaborate on reason of having check for message_removed?
>> Adding new message doesn’t mean compatibility is lost.
>>
>> Sent from my iPhone
>>
>> On 04-Dec-2022, at 9:41 AM, Robert Yokota <[email protected]> wrote:
>>
>> 
>> Hi,
>>
>> I believe this is coming from the Confluent compatibility checker.  (I
>> work for Confluent.)
>>
>> A forward compatibility check is just a backward compatibility check with
>> the arguments reversed.  Since removing a message is not backward
>> compatible, adding a message is not forward compatible.
>>
>> Hope that helps,
>> Robert
>>
>> On Sun, Dec 4, 2022 at 6:35 AM 'Adam Cozzette' via Protocol Buffers <
>> [email protected]> wrote:
>>
>>> I don't think we maintain any code that returns that kind of error. Do
>>> you know where that error is coming from? Is it from some external protobuf
>>> compatibility checker?
>>>
>>> On Thu, Dec 1, 2022 at 4:21 AM Komal Kamble <[email protected]>
>>> wrote:
>>>
>>>>
>>>> Hello Adam Cozzette,
>>>> We are getting Found incompatibility change error of type
>>>> MESSAGE_REMOVED.
>>>>
>>>>
>>>> On 02-Nov-2022, at 11:41 PM, Adam Cozzette <[email protected]>
>>>> wrote:
>>>>
>>>> 
>>>> Adding more message types to the proto file is fine and has no
>>>> compatibility issues. Can you say more about the error you're getting?
>>>>
>>>> On Wed, Nov 2, 2022 at 7:03 AM Komal Kamble <[email protected]>
>>>> wrote:
>>>>
>>>>> Hello ProtocolBufferSupport team,
>>>>>
>>>>> If I have a proto file with multiple sub-message types defined and If
>>>>> I want to add more sub-message types in the same file I am getting 
>>>>> BACKWARD
>>>>> and FORWARD compatibility errors.
>>>>>
>>>>> I am using com.github.os72:protoc-jar-maven-plugin:3.11.4 plugin in
>>>>> java module to compile proto files and kafka-protobuf-provider:6.1.6 for
>>>>> ProtobufSchema object.
>>>>>
>>>>> The query is getting compatibility errors is it correct behavior or
>>>>> not?
>>>>>
>>>>> I didn't find any documentation in protocol-buffer user guide
>>>>> regarding adding more sub-message types in the existing proto file.
>>>>>
>>>>> Could you please help me to understand the standard behavior of the
>>>>> protocol buffer?
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Protocol Buffers" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/protobuf/8373c01f-8e61-4469-80e5-82a859035f2dn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/protobuf/8373c01f-8e61-4469-80e5-82a859035f2dn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Protocol Buffers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/protobuf/CADqAXr5pxtdS8Lcw-oXFNPdR3FDNi6_vngBMqjh4Pm%3Dh-QfEvA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/protobuf/CADqAXr5pxtdS8Lcw-oXFNPdR3FDNi6_vngBMqjh4Pm%3Dh-QfEvA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/CAG0mBZTsaTSgjWzL0aY8Y41cJ3P-VnZ%3DimmqjN8%3DROjuM-m-DA%40mail.gmail.com
> <https://groups.google.com/d/msgid/protobuf/CAG0mBZTsaTSgjWzL0aY8Y41cJ3P-VnZ%3DimmqjN8%3DROjuM-m-DA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAF95VAxwY7GUGc-EsKzsNkLSnHmPN%2B5ygovENEOMscGjWfOuxg%40mail.gmail.com.

Reply via email to