Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3256

[JS] File footer and message metadata is inconsistent

    XMLWordPrintableJSON

Details

    Description

      I added some assertions to the C++ library and found that the body length in the file footer and the IPC message were different

      ##########################################################
      JS producing, C++ consuming
      ##########################################################
      ==========================================================
      Testing file /home/travis/build/apache/arrow/integration/data/struct_example.json
      ==========================================================
      -- Creating binary inputs
      node --no-warnings /home/travis/build/apache/arrow/js/bin/json-to-arrow.js -a /tmp/tmplbm3vbwz/3d2269c960f148b6b94e5f881c0bf9ca_struct_example.json_to_arrow -j /home/travis/build/apache/arrow/integration/data/struct_example.json
      -- Validating file
      /home/travis/build/apache/arrow/cpp-build/debug/json-integration-test --integration --arrow=/tmp/tmplbm3vbwz/3d2269c960f148b6b94e5f881c0bf9ca_struct_example.json_to_arrow --json=/home/travis/build/apache/arrow/integration/data/struct_example.json --mode=VALIDATE
      Command failed: /home/travis/build/apache/arrow/cpp-build/debug/json-integration-test --integration --arrow=/tmp/tmplbm3vbwz/3d2269c960f148b6b94e5f881c0bf9ca_struct_example.json_to_arrow --json=/home/travis/build/apache/arrow/integration/data/struct_example.json --mode=VALIDATE
      With output:
      --------------
      /home/travis/build/apache/arrow/cpp/src/arrow/ipc/reader.cc:581 Check failed: (message->body_length()) == (block.body_length)
      

      I'm not sure what's wrong. I'll remove the assertions for now

      Attachments

        Issue Links

          Activity

            People

              paul.e.taylor Paul Taylor
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m