# Reg udf by aql not worked on part nodes

**URL:** <https://discuss.aerospike.com/t/reg-udf-by-aql-not-worked-on-part-nodes/10426>\
**Category:** Operations\
**Tags:** udf, aql\
**Created:** [August 16, 2023, 9:44am UTC](https://discuss.aerospike.com/t/reg-udf-by-aql-not-worked-on-part-nodes/10426 "2023-08-16T09:44:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chender](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@chender](https://discuss.aerospike.com/u/chender)\
**Post date:** [August 16, 2023, 9:44am UTC](https://discuss.aerospike.com/t/reg-udf-by-aql-not-worked-on-part-nodes/10426/1 "2023-08-16T09:44:24Z")

</div>

I have use Aerospike for about two years, the version is community 4.9.0.33.  
Recently，I updated a existed udf module by aql on one of the nodes，and the udf files are modified on all of the nodes( both the \*.lua and the UDF.smd are modified )，But it seems that the updated logic was only effected on part of nodes.（In the update，I return some extend fields when response，but most of the response dose not contains the extend fields）. So, help!!! thanks~

---

<div class="post-metadata">

**Author:** ![chender](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@chender](https://discuss.aerospike.com/u/chender)\
**Post date:** [August 17, 2023, 11:32am UTC](https://discuss.aerospike.com/t/reg-udf-by-aql-not-worked-on-part-nodes/10426/2 "2023-08-17T11:32:52Z")

</div>

It seems that some lua caches which are using when the udf updated are not updated So,I execute the udf-clear-cache cmd at the test cluster，it workds,but the performence became very bad. It means that I can not use the udf-clear-cache cmd at the online cluster.

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [August 21, 2023, 10:14pm UTC](https://discuss.aerospike.com/t/reg-udf-by-aql-not-worked-on-part-nodes/10426/3 "2023-08-21T22:14:34Z")

</div>

Check out [version 6.4](https://docs.aerospike.com/reference/release_notes/server/6.4-server-release-notes) that has improvements in that area, specifically:

`AER-6636 (UDF) Improved Lua cache management so that a module can be re-registered while in use.`

There must have been other improvements since 4.9 and I would hope/assume those are for CE as well as EE.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [August 20, 2024, 10:15pm UTC](https://discuss.aerospike.com/t/reg-udf-by-aql-not-worked-on-part-nodes/10426/4 "2024-08-20T22:15:01Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
