Error while restoring backup from LDT enabled namespace


#1

Error while restoring backup from LDT enabled namespace

The following article describes errors related to the use of LDT (large data types). LDTs are not as mature as other areas of the Aerospike product and, as such, their usage is discouraged. For an alternate means of achieving business logic without the use of LDTs, please contact your Solutions Architect, either directly or via Support.

Problem Description

When restoring a backup of an LDT enabled namespace, the following error is displayed:

2016-03-29 07:31:44 GMT [ERR] [52205] Error while putting UDF file custom_ldt_function.lua - code 100: error=compile_error;file=largelist_size1.lua;line=1;message=module 'ldt/settings_llist' not found:
no field package.preload['ldt/settings_llist']
no file './ldt/settings_llist.lua'
no file '/usr/local/share/luajit-2.0.3/ldt/settings_llist.lua'
no file '/usr/local/share/lua/5.1/ldt/settings_llist.lua'
no file '/usr/local/share/lua/5.1/ldt/settings_llist/init.lua'
no file '/opt/aerospike/sys/udf/lua/ldt/settings_llist.lua'
no file '/opt/aerospike/sys/udf/lua/external/ldt/settings_llist.lua'
no file '/opt/aerospike/usr/udf/lua/ldt/settings_llist.lua'
no file './ldt/settings_llist.so'
no file '/usr/local/lib/lua/5.1/ldt/settings_llist.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/opt/aerospike/sys/udf/lua/ldt/settings_llist.so'
no file '/opt/aerospike/sys/udf/lua/external/ldt/settings_llist.so'
no file '/opt/aerospike/usr/udf/lua/ldt/settings_llist.so' at src/main/aerospike/as_info.c:214

Explanation

This error is generated because the module ~/ldt/settings_llist has been deprecated and is no longer supplied with the product. Functions using this module will no longer compile as it is no longer necessary.

Solution

The backup option –no udfs can be used to restore the backup without UDFs. To prevent the issue occurring in the long term the UDF concerned should be removed from the source of the backup file so that this error is not generated in the future.