Re: Coupled Layer MSR: PR 14300, ECSubRead decode fail.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 3, 2017 at 11:02 AM, Myna V <mynaramana@xxxxxxxxx> wrote:
> Hello All,
>
> This is regarding the make check error in readable.sh
>
> https://jenkins.ceph.com/job/ceph-pull-requests/21319/
>
> We have added additional fields to the ECSubRead message type and
> updated the encode, decode of ECSubRead message to incorporate the
> newly added fields. The failure seems to happen when the object (older
> ECSubRead) is being decoded with the new decode function as it is
> expecting a larger buffer length.
>
> How do we update the test objects in ceph-object-corpus with these
> added fields ?

You don't! ceph-object-corpus exists to make sure that newer code can
read older objects. You need to update the versions used in
ENCODE_START/DECODE_START and branch internally based on the encoded
object's struct_v member. I'm not sure if there are good examples of
this in the EC utility functions yet, but if not you can check out
osd_types.[h|cc] and the encoding.h macros being invoked. :)
-Greg
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux