Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-3900

Protobuf: UTF8 error when trying to load ZooKeeper data

    Details

    • Type: Task
    • Status: Resolved
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Hi,

      We are working on https://github.com/Wizcorp/frontrunner right now, and we are having troubles loading the data stored in ZooKeeper. I have written a small PoC to demonstrate the issue we are having:

      https://github.com/stelcheck/marathon-zookeeper-example

      I get the following output when running index.js:

      zk session established, id=144edfc06ed01dd
      libprotobuf ERROR ../protobuf/src/google/protobuf/wire_format.cc:1059] Encountered string containing invalid UTF-8 data while parsing protocol buffer. Strings must contain only UTF-8; use the 'bytes' type for raw bytes.
      got zk node: { czxid: 30064783262,
        mzxid: 30064783274,
        pzxid: 30064783262,
        dataLength: 50,
        numChildren: 0,
        version: 3,
        cversion: 0,
        aversion: 0,
        ctime: Thu Apr 24 2014 21:46:22 GMT+0900 (JST),
        mtime: Thu Apr 24 2014 21:48:04 GMT+0900 (JST),
        ephemeralOwner: '0',
        createdInThisSession: false }
      node content: { id: 'tasks:Redis',
        host: 'yjX?�gM�����=G�/',
        ports: [ 13996, 5, 119, 11, 0, 0, 0, 7, 10, 5, 82, 101, 100, 105, 115 ] }
      

      I have also written a small test using a pure javascript implementation of protobuf, and I get similar errors.

      I will try to have a look at what might be wrong with the libraries, but I wonder if anyone ever had similar issues with Mesos or Marathon proto files?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              GitHub_stelcheck Marc Trudel (Inactive)
              Team:
              Orchestration Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: