Long bin names throw Exception

Post by rajnairkansas » Fri May 02, 2014 10:59 am

I have a program that builds out keys and bins from csv files. However, I kept getting an exception when I try to issue a put on the AeroClient. Here’s the example: nextLine = csvRead.readNext(); Key manfKey = new Key(“rmp”, “manufacturers”, nextLine[MANF_NAME_INDEX]); nameBin = new Bin(“manufacturer_alias”, nextLine[MANF_SEARCHNAME_INDEX]); aeroClient.put(writePolicy, manfKey, nameBin);

The put kept failing - after several debugging sessions on a chance I found nested deep down in the Exception stack trace a message about the bin name being too long!!. I changed the bin name to “manufalias” and it worked. I am just wondering now what the hard limit on bin name is and why it is being restricted ? (I am guessing memory , but would like to hear that from you :slight_smile: )


Post by devops02 » Wed May 07, 2014 1:41 pm

Currently there is a bin name limit of 14 characters long, anything beyond that will give you an error. This was an early design decision that was made to conserve on memory.