Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-5698 Use protobuf to serialize / deserialize FSImage
  3. HDFS-5911

The id of a CacheDirective instance does not get serialized in the protobuf-fsimage

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When saving the FSImage, the current CacheManager does not serialize the id of a CacheDirective. It should serialize it onto the disk.

        Activity

        Hide
        Jing Zhao added a comment -

        +1. I've committed this.

        Show
        Jing Zhao added a comment - +1. I've committed this.
        Hide
        Haohui Mai added a comment -

        The patch matches the current behavior of the old format, which resides in FSImageSerialization.writeCacheDirectiveInfo.

        Show
        Haohui Mai added a comment - The patch matches the current behavior of the old format, which resides in FSImageSerialization.writeCacheDirectiveInfo .

          People

          • Assignee:
            Haohui Mai
            Reporter:
            Haohui Mai
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development