Warnings related to Complex Data Types


CDT - Warnings and their meanings

This knowledge-base captures some of the warnings when working with CDT.

WARN: packed_list_remove() index 0 out of bounds for ele_count 0


WARNING (particle): (particle_map.c:3173) packed_map_get_remove_by_index_range() index 0 out of bounds for ele_count 0

This means the list or map has 0 elements, and there was an attempt to remove element at index 0. Normally if a list has 1 element, the element at index 0 will exist and be the only element in the list or map. You just can’t remove elements that aren’t there and that’s what the warning means. It could also say like, index 2 out of bounds for ele_count 1.

This error has been removed on newer versions of the server ( and above). The behavior for remove-element operations on non-existent bins is now a no-op instead of an error.

WARN: write_master: failed as_bin_cdt_alloc_modify_from_client()

This error is also expected if a list_clear() is done on a bin that isn’t a list or doesn’t exist. list_clear() will return an error when the bin isn’t a list or doesn’t exist.

WARN: cdt_process_state_packed_list_modify_optype() POP_RANGE/REMOVE_RANGE failed

This is another warning up the stack (the above two mentioned warnings) that says that the operation failed. It’s part of the same failure.