Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-20002

cursorBin object in Json incorrectly defined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: Embedded Languages
    • Labels:
      None

      Description

       

      We are getting an assert fail on the read with a cursor.  The error is:

      Exception in thread "main" org.hpccsystems.spark.HpccFileException: Failed with ERROR: cmd=RFCStreamReadTestSocket, error=Internal Error (3000, assert(readPos+(len)<=length()) failed - file: jbuff.cpp, line 837)

       

      The transaction is:

      { "format" : "binary",
      
       "node" : {
      
       "kind" : "diskread",
      
       "fileName" : "/var/lib/HPCCSystems/hpcc-data/thor/thor/jdh/japi_fixed_multi._2_of_20", 
      
       "compressed": "false", 
      
       "input" : {
      
       "ty1": {
      
        "fieldType": 4,
      
        "length": 3
      
       },
      
       "ty2": {
      
        "fieldType": 1,
      
        "length": 2
      
       },
      
       "fieldType": 13,
      
       "length": 10,
      
       "fields": [
      
        {
      
         "name": "pfx",
      
         "type": "ty1",
      
         "flags": 4
      
        },
      
        {
      
         "name": "node",
      
         "type": "ty2",
      
         "flags": 1
      
        },
      
        {
      
         "name": "pos",
      
         "type": "ty2",
      
         "flags": 1
      
        },
      
        {
      
         "name": "sfx",
      
         "type": "ty1",
      
         "flags": 4
      
        }
      
       ]
      
      }, 
      
       "output" : 
      
      {
      
        "ty2"  : {
      
          "fieldType"  : "1",
      
          "length"  : "2"
      
        },
      
        "fieldType"  : "13",
      
        "length"  : "10",
      
        "fields" : [
      
          {
      
            "name"  : "node",
      
            "type"  : "ty2",
      
            "flags"  : "1"
      
          },
      
          {
      
            "name"  : "pos",
      
            "type"  : "ty2",
      
            "flags"  : "1"
      
          }
      
        ]
      
      }
      
       },
      
        "cursorBin" : \{ "#valuebin" : "AAAAAAAAA+gAAAAAAAAAZAEA" }
      
      }
      

       

      This transaction filters the fields returns.  The error also occurs with no fields removed.

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johnholt John Holt
                Reporter:
                johnholt John Holt
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: