Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8707 Implement an async pure c++ HDFS client
  3. HDFS-9320

libhdfspp should use sizeof(int32_t) instead of sizeof(int) when parsing data

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-8707
    • hdfs-client
    • None
    • Reviewed

    Description

      In a few places, we're using sizeof(int) and sizeof(short) to determine where in the received buffers we should be looking for data. Those values are compiler- and platform-dependent. We should use specified sizes, or at least sizeof(int32_t).

      Attachments

        1. HDFS-9320.HDFS-8707.002.patch
          4 kB
          James Clampffer
        2. HDFS-9320.HDFS-8707.001.patch
          5 kB
          James Clampffer
        3. HDFS-9320.HDFS-8707.000.patch
          5 kB
          James Clampffer

        Activity

          People

            James Clampffer James Clampffer
            bobhansen Bob Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: