In my script, I am doing the following:
In the error log, I see logs indicating that the VLV indexes have been deleted. I also see that the VLV indexing task has been added (by doing an ldapsearch), but the task is never acted upon.
If I restart the server and then attempt the reindexing, it works.
[02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Search (allKeys-pki-tomcat). [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Search (kraAll-pki-tomcat). [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Search (kraArchival-pki-tomcat). [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Search (kraRecovery-pki-tomcat). [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Search (kraCanceled-pki-tomcat). [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Search (kraCanceledEnrollment-pki-tomcat). [02/Jun/2016:09:21:04 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Search (kraCanceledRecovery-pki-tomcat). [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Search (kraRejected-pki-tomcat). [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Search (kraRejectedEnrollment-pki-tomcat). [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Search (kraRejectedRecovery-pki-tomcat). [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Search (kraComplete-pki-tomcat). [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Search (kraCompleteEnrollment-pki-tomcat). [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Index. [02/Jun/2016:09:21:05 -0400] - Deleted Virtual List View Search (kraCompleteRecovery-pki-tomcat).
Interesting... My reindexing task hangs in BDB: {{{ (gdb) bt
at ../../src/mutex/mut_pthread.c:321
at ../../src/mutex/mut_pthread.c:577
obj=<optimized out>, lock_mode=<optimized out>, timeout=0, lock=0x7fbce8fe75f8) at ../../src/lock/lock.c:989
list=list@entry=0x7fbce8fe75b0, nlist=nlist@entry=2, elistp=elistp@entry=0x7fbce8fe7558) at ../../src/lock/lock.c:140
elockp=0x7fbce8fe7680, flags=<optimized out>) at ../../src/fileops/fop_util.c:144
name=0x7fbc700042e0 "/var/lib/dirsrv/slapd-test0/db/userRoot/vlv#bymccoupeopledcexampledccom.db", flags=flags@entry=0) at ../../src/fileops/fop_util.c:1079
name=name@entry=0x7fbce8fe7ad0 "/var/lib/dirsrv/slapd-test0/db/userRoot/vlv#bymccoupeopledcexampledccom.db", subdb=subdb@entry=0x0, flags=flags@entry=0) at ../../src/db/db_remove.c:289
name=name@entry=0x7fbce8fe7ad0 "/var/lib/dirsrv/slapd-test0/db/userRoot/vlv#bymccoupeopledcexampledccom.db", subdb=subdb@entry=0x0, flags=flags@entry=0) at ../../src/db/db_remove.c:220
name=0x7fbce8fe7ad0 "/var/lib/dirsrv/slapd-test0/db/userRoot/vlv#bymccoupeopledcexampledccom.db", subdb=0x0, flags=0) at ../../src/db/db_remove.c:194
path=0x7fbce8fe7ad0 "/var/lib/dirsrv/slapd-test0/db/userRoot/vlv#bymccoupeopledcexampledccom.db", dbName=0x0, use_lock=0) at ldap/servers/slapd/back-ldbm/dblayer.c:3190
at ldap/servers/slapd/back-ldbm/dblayer.c:3308
at ldap/servers/slapd/back-ldbm/dblayer.c:3330
}}} And my shutdown attempt hangs due to this db_tas_mutex_lock.
But it looks you had no problem to restart the server. I'm worried if I'm seeing the same issue you reported.
Could it be possible to try the operation again and attach gdb to the server to get the stacktraces?
The instruction is found here: http://www.port389.org/docs/389ds/FAQ/faq.html#debugging-hangs
Thanks.
In addition to the gdb output, can we have the output from this ldapsearch on the VLV indexing task?
I also see that the VLV indexing task has been added (by doing an ldapsearch),
Could it have this status?
nstaskstatus: userRoot: Finished indexing.
If yes, what happens if you run a search using the VLV index? Does it fail?
Per weekly meeting, setting the milestone to 1.3.6.
Metadata Update from @nhosoi: - Issue assigned to nhosoi - Issue set to the milestone: 1.3.6.0
Metadata Update from @mreynolds: - Custom field reviewstatus reset (from needinfo) - Issue close_status updated to: None - Issue set to the milestone: 1.4 backlog (was: 1.3.6.0)
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/1925
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix - Issue status updated to: Closed (was: Open)