Tip-clear not working if used outside asadm prompt


#1

tip-clear command is working fine when run inside asadm prompt

Admin> asinfo -v 'tip-clear:host-port-list=192.168.3.105:3002'
sps-me-2-db-1:3000 (192.168.3.103) returned:
ok

sps-me-2-db-2:3000 (192.168.3.104) returned:
ok

sps-me-2-db-0:3000 (192.168.3.102) returned:
ok

but when executed from shell using asadm -e option it is not working

-sh-4.2$ asadm -e "asinfo -v 'tip-clear:host-port-list=192.168.3.105:3002'"
sps-me-2-db-1:3000 (192.168.3.103) returned:
error: 0 cleared, 0 not found

sps-me-2-db-2:3000 (192.168.3.104) returned:
error: 0 cleared, 0 not found

sps-me-2-db-0:3000 (192.168.3.102) returned:
error: 0 cleared, 0 not found

or

-sh-4.2$ echo "asinfo -v 'tip-clear:host-port-list=192.168.3.105:3002'" | asadm
Aerospike Interactive Shell, version 0.1.16

Found 3 nodes
Online:  192.168.3.103:3000, 192.168.3.104:3000, 192.168.3.102:3000
Extra nodes in alumni list: 192.168.3.105:3000

Admin> sps-me-2-db-1:3000 (192.168.3.103) returned:
error: 0 cleared, 1 not found

sps-me-2-db-2:3000 (192.168.3.104) returned:
error: 0 cleared, 1 not found

sps-me-2-db-0:3000 (192.168.3.102) returned:
error: 0 cleared, 1 not found

Admin> -sh-4.2$

#2

It looks like you cleared it already, and then subsequent commands couldn’t find it because it was already clear? Does the node appear using asinfo -v mesh? If not, you can’t clear it… It seems to be working fine. But please clarify if I am misunderstanding. For the alumni list, that is separate than heartbeat. You can read about removing a node here: https://aerospike.com/docs/operations/manage/cluster_mng/removing_node/index.html where it shows alumni reset as a separate step.


#3

Thanks Albot, You are right it was cleared before by my colleague. And yes we are using mesh for node connectivity.

So last thing, is there any any command to add cleared node back again ?


#4

You just need to run the tip command instead of tip clear. https://www.aerospike.com/docs/reference/info/#tip