Giter Site home page Giter Site logo

Comments (3)

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

Hi @khanhhua

This error comes when non-ldt bin is used for a LDT operation. For example, when one tries to add a value to a bin, which is not LDT bin, server returns this error.
And are you setting policy value when creating the LargeList? I tried reproducing the same error, but could not. Could you share the sample piece of code that produces this segfault to help us debug further.

Thanks

from aerospike-client-nodejs.

denisbetsi avatar denisbetsi commented on August 23, 2024

I am getting the same error
The code is from sample node.js Answers section of the exercises

    // Read User record
    var key = {
      ns:  "test",
      set: "users",
      key: answer.username
    };

    // Retrieve the record using the key.
    client.get(key, function(err, record, metadata, key) {
        if(err.code===0){
          console.log("FOUND : " + JSON.stringify(record));
        }else{
          console.log("NOT_FOUND - " + JSON.stringify(err));
        }
        client.close();
    });

The result:

? What would you like to do: Read User Record
********** Read User Record **********
? Enter username: user2341
Error : {"code":2,"message":"AEROSPIKE_ERR_RECORD_NOT_FOUND","func":"as_command_parse_result","file":"src/main/aerospike/as_command.c","line":915}
node(8707,0x7fff7d82c300) malloc: *** error for object 0x1018b4600: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

Interesting enough, one time using same code and same username, the record WAS found

? What would you like to do: Read User Record
********** Read User Record **********
? Enter username: user241
FOUND : {"username":"user241","password":"pwd241","gender":"m","region":"s","tweetcount":0,"lasttweeted":0,"interests":["Camping","Camping","Travel"]}
node(8696,0x7fff7d82c300) malloc: *** error for object 0x102027800: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

I am on Mac OS Yosemite, using latest version of Node.js

from aerospike-client-nodejs.

jhecking avatar jhecking commented on August 23, 2024

Closing out this old issue.

from aerospike-client-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.