Bug #60485

after deleting user index worker continue to send index jobs to a sis even if user was deleted

Added by Alexey Bobyr almost 3 years ago.

Status:NewStart date:06/10/2016
Priority:NormalDue date:
Assignee:ServerDevsGroup% Done:
0%
Category:Scalix Server
Target version:12.7
Operation System:--
Milestones:

Description

take some user

[root@test logs]# omshowu -n user330
Authentication ID: user330@allwebsuite.com
Globally Unique ID: 93e10000274b1375-301.65.861.291
User Name : user330 /CN=user330
MailNode : test
Internet Address : "user330" <user330@allwebsuite.com>
System Login : 55331
Password : pre-expired
Admin Capabilities : NO
Mailbox Admin Capabilities : NO
Language : C
Mail Account: Unlocked
Last Signon : Never.
Receipt of mail : ENABLED
Service level : 0
<pre>
Excluded from Tidyall : NO
</pre>
Recovery Folder visible : NO
User Class : Limited
SIS URL : sxidx://test.centosx64.com:8080/8ff10000274b1375-301.65.861.291
All Sender IA : "user330" <user330@allwebsuite.com>

check if it has indexes folder and emails

[root@test logs]# du -h /var/opt/scalix/??/indexes/8ff10000274b1375-301.65.861.291
140K    /var/opt/scalix/tt/indexes/8ff10000274b1375-301.65.861.291/ref
121M    /var/opt/scalix/tt/indexes/8ff10000274b1375-301.65.861.291
[root@test logs]# sxmboxlist -u user330 -v msg
.....

# Number of folders : 9
# Number of messages: 1686
# Total item size   : 102855Kb

remove indexes for this user

[root@test logs]# sxmkindex -R user330
user330 /test:    Previous index removed OK
1686
Total messages processed: 1686
[root@test logs]# sxmkindex -R user330
user330 /test:    Previous index removed OK
1686
Total messages processed: 1686
[root@test logs]# du -h /var/opt/scalix/??/indexes/8ff10000274b1375-301.65.861.291
du: cannot access ‘/var/opt/scalix/??/indexes/8ff10000274b1375-301.65.861.291’: No such file or directory

[root@test logs]# grep '8ff10000274b1375-301.65.861.291' ./*.txt
192.168.56.103 - - [10/Jun/2016:03:47:29 -0400] "GET /sis/indexer?fn=rmindex&uid=8ff10000274b1375-301.65.861.291 HTTP/1.1" 200 14

[root@test logs]# pwd
/var/opt/scalix/tt/tomcat/logs
[root@test logs]# 

start full reindex for this user

[root@test logs]# sxmkindex -r 0 user330
user330 /test: 1686
Total messages processed: 1686
[root@test logs]# grep '8ff10000274b1375-301.65.861.291' ./*.txt
192.168.56.103 - - [10/Jun/2016:03:47:29 -0400] "GET /sis/indexer?fn=rmindex&uid=8ff10000274b1375-301.65.861.291 HTTP/1.1" 200 14
192.168.56.103 - - [10/Jun/2016:03:48:31 -0400] "GET /sis/admin?uid=8ff10000274b1375-301.65.861.291&ref=true HTTP/1.1" 200 3
....
192.168.56.103 - - [10/Jun/2016:03:53:33 -0400] "POST /sis/indexer?fn=index&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000104787a83bb18&indexid=6738a8c0-5731b472-575a6d1b-a216&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 200 14
192.168.56.103 - - [10/Jun/2016:03:53:33 -0400] "POST /sis/indexer?fn=index&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=0001047b062f8187&indexid=6738a8c0-5731b472-575a6d1c-a21f&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 200 14

As we can see it started ro index messages.
Lets delete user

[root@test logs]# omdelu -n user330
omdelu: One user successfully deleted
[root@test logs]# date
Fri Jun 10 03:53:52 EDT 2016
[root@test logs]# 

server sent rmindex at 03:53:42

[root@test logs]# grep '8ff10000274b1375-301.65.861.291' ./*.txt | grep rmindex
192.168.56.103 - - [10/Jun/2016:03:47:29 -0400] "GET /sis/indexer?fn=rmindex&uid=8ff10000274b1375-301.65.861.291 HTTP/1.1" 200 14
192.168.56.103 - - [10/Jun/2016:03:53:42 -0400] "GET /sis/indexer?fn=rmindex&uid=8ff10000274b1375-301.65.861.291 HTTP/1.1" 200 14

but indexworker keep send index jobs for that user

[root@test logs]# tail ./*.txt
192.168.56.103 - - [10/Jun/2016:03:53:59 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107e7d418383e&indexid=6738a8c0-5731b472-575a6df8-ac54&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:53:59 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107e8c2fa622a&indexid=6738a8c0-5731b472-575a6df8-ac57&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:53:59 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107e992c1e153&indexid=6738a8c0-5731b472-575a6df8-ac5a&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:53:59 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107ea0f0ce10d&indexid=6738a8c0-5731b472-575a6df8-ac5d&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:53:59 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107eb9d87c88a&indexid=6738a8c0-5731b472-575a6df8-ac60&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:53:59 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107ec122a640e&indexid=6738a8c0-5731b472-575a6df9-ac63&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:54:00 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107ed8313cbe3&indexid=6738a8c0-5731b472-575a6df9-ac66&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:54:00 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107ee3af34b14&indexid=6738a8c0-5731b472-575a6df9-ac69&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:54:00 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107ef7d68729c&indexid=6738a8c0-5731b472-575a6df9-ac6c&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -
192.168.56.103 - - [10/Jun/2016:03:54:00 -0400] "GET /sis/indexer?fn=add&uid=8ff10000274b1375-301.65.861.291&pdref=00010ccd40b87f13&dref=000107f0f4ea1d2c&indexid=6738a8c0-5731b472-575a6dfa-ac6f&flags=unseen,unflagged,unanswered,undeleted,undraft,unlabel1,unlabel2,unlabel3,unlabel4,unlabel5,unlabel6,unlabel7,unlabel8,unjunk,unnonjunk,unforwarded HTTP/1.1" 204 -

as you can see uid=8ff10000274b1375-301.65.861.291 its a deleted user

Expected: no requests to sis after omdelu for that user.

indexworker queue must clean up with deleting user

Also available in: Atom PDF