New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot reindex retrochangelog #956
Comments
Comment from pspacek at 2013-12-03 20:35:45 I have run into this problem today during syncrepl testing, so changed "Ticket origin" to IPA. |
Comment from tbordaz (@tbordaz) at 2014-02-07 23:08:30 I was unable to reproduce the problem (kind of hang of the task). Using a test case (lib389), it succeeds to index an attribute (here 'cn').
The problem is possibly not systematic or has been fixed since it was reported. |
Comment from tbordaz (@tbordaz) at 2014-02-11 22:41:47 attachment |
Comment from tbordaz (@tbordaz) at 2014-02-11 22:47:10 I am still failing to reproduce with the attached test case.
All reindex completed successfully, although the index are empty. |
Comment from pspacek at 2014-02-12 16:44:33 Interesting. I don't have the original VM anymore so I will close the ticket. Thank you for your time! |
Comment from tbordaz (@tbordaz) at 2014-02-12 17:01:50 Hi Peter, I reproduced locally the problem:
Talking with Ludwig yesterday, I realized that the difference of my test case vs. what he did was that the instance was restarted before the reindex. It makes the difference and allow me to reproduce. I reopen that ticket. Sorry for the noise |
Comment from tbordaz (@tbordaz) at 2014-02-12 20:18:12 To do a reindex task, the 'changelog' backend needs to be acquired in Write. The hang of the thread processing the task is due to the 'changelog' backend being already acquired in Read. This seems to be triggered by the retro-changelog plugin startup routine that acquires the backend in Read but does not to release it after the plugin initialization.
What I do not understand is why it requires a restart between index configuration and reindex to trigger the hang. |
Comment from lkrispen (@elkris) at 2014-02-12 20:22:14 If the server is not restarted is the index really active, does indexing work and try to acquire the lock ? |
Comment from tbordaz (@tbordaz) at 2014-02-12 20:59:08 Regarding the test case: Regarding the index: |
Comment from tbordaz (@tbordaz) at 2014-02-12 22:21:56 Regarding index: Once retroCL is enabled and the server restarted. |
Comment from tbordaz (@tbordaz) at 2014-02-12 23:30:40 attachment |
Comment from tbordaz (@tbordaz) at 2014-02-12 23:30:56 attachment |
Comment from tbordaz (@tbordaz) at 2014-02-13 16:47:44 git merge ticket47619 Updating 5b8dfcd..8087f05 git push origin master Counting objects: 18, done. commit 8087f05 |
Comment from tbordaz (@tbordaz) at 2017-02-11 23:06:04 Metadata Update from @tbordaz:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/47619
needed to add an index to the retro changelog so that memberof and referint don't do unindexed searches, but it fails to reindex
/usr/sbin/db2index.pl -v -n 'changelog' -D "cn=directory manager" -w secret12 -Z mysync -t cn
ldap_initialize( ldap://localhost:1390 )
Successfully added task entry "cn=db2index_2013_12_3_15_3_18, cn=index, cn=tasks, cn=config"
The index thread is created, but waits on a lock:
Thread 2 (Thread 0x7fc88ffff700 (LWP 18992)):
0 pthread_rwlock_wrlock () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:86
1 0x0000003f2f6d1489 in slapi_rwlock_wrlock (rwlock=0x14d1240) at ldap/servers/slapd/slapi2nspr.c:267
2 0x0000003f2f64ef0f in slapi_be_Wlock (be=0x14c0e90) at ldap/servers/slapd/backend_manager.c:436
3 0x0000003f2f694d35 in slapi_mtn_be_set_readonly (be=0x14c0e90, readonly=1) at ldap/servers/slapd/mapping_tree.c:3724
4 0x00007fc8b87e852e in instance_set_busy_and_readonly (inst=0x13d5260) at ldap/servers/slapd/back-ldbm/misc.c:210
5 0x00007fc8b87e20c0 in ldbm_back_ldbm2index (pb=0x7fc888003820) at ldap/servers/slapd/back-ldbm/ldif2ldbm.c:1742
6 0x0000003f2f6dbe94 in task_index_thread (arg=0x7fc888003820) at ldap/servers/slapd/task.c:1644
7 0x0000003e6dc28b46 in _pt_root (arg=0x7fc888003ae0) at ../../../nspr/pr/src/pthreads/ptthread.c:204
8 0x000000390b607d14 in start_thread (arg=0x7fc88ffff700) at pthread_create.c:309
9 0x000000390aef168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
no other activity on the server, indxing an other backend works
The text was updated successfully, but these errors were encountered: