Issue 8291 - ./run -b hdb test007 fails
Summary: ./run -b hdb test007 fails
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-27 08:24 UTC by Michael Ströder
Modified: 2019-09-11 20:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Michael Ströder 2015-10-27 08:24:08 UTC
Full_Name: Michael Str.der
Version: master 0d9b8ebe4bfe584e796f683be6203d4a4eb421a2
OS: openSUSE Linux
URL: 
Submission from: (NULL) (213.240.180.113)


Currently this test fails with git master
0d9b8ebe4bfe584e796f683be6203d4a4eb421a2:

michael@nb2:/usr/src/michael/openldap-git/master/openldap/tests> ./run -b hdb
test007
Cleaning up test run directory leftover from previous run.
Running ./scripts/test007-slapmodify for hdb...
running defines.sh
Running slapadd to build slapd database...
Testing modify, add, and delete using slapmodify...
slapmodify failed (1)!

I can provide more logs if needed.
Comment 1 Ondřej Kuzník 2015-10-27 09:02:37 UTC
On Tue, Oct 27, 2015 at 08:24:08AM +0000, michael@stroeder.com wrote:
> Currently this test fails with git master
> 0d9b8ebe4bfe584e796f683be6203d4a4eb421a2:
> 
> michael@nb2:.../openldap/tests> ./run -b hdb test007
> Cleaning up test run directory leftover from previous run.
> Running ./scripts/test007-slapmodify for hdb...
> running defines.sh
> Running slapadd to build slapd database...
> Testing modify, add, and delete using slapmodify...
> slapmodify failed (1)!
> 
> I can provide more logs if needed.

Yes please. I am curious which modify/delete failed as I can't
reproduce this failure.

Cheers,
Ondrej

Comment 2 Michael Ströder 2015-10-27 09:50:04 UTC
ondra@mistotebe.net wrote:
> On Tue, Oct 27, 2015 at 08:24:08AM +0000, michael@stroeder.com wrote:
>> Currently this test fails with git master
>> 0d9b8ebe4bfe584e796f683be6203d4a4eb421a2:
>>
>> michael@nb2:.../openldap/tests> ./run -b hdb test007
>> Cleaning up test run directory leftover from previous run.
>> Running ./scripts/test007-slapmodify for hdb...
>> running defines.sh
>> Running slapadd to build slapd database...
>> Testing modify, add, and delete using slapmodify...
>> slapmodify failed (1)!
>>
>> I can provide more logs if needed.
> 
> Yes please. I am curious which modify/delete failed as I can't
> reproduce this failure.

Strange: testrun/test.out has zero bytes. :-/
But the DB files are created.

Other tests with -b hdb seem to work ok.
Maybe it's just the test script?

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Can't see a problem on my side.

BTW: It works with mdb though.

Ciao, Michael.


Comment 3 Ondřej Kuzník 2015-11-22 19:34:33 UTC
On Tue, Oct 27, 2015 at 09:50:10AM +0000, michael@stroeder.com wrote:
> Strange: testrun/test.out has zero bytes. :-/
> But the DB files are created.
> 
> Other tests with -b hdb seem to work ok.
> Maybe it's just the test script?

I've let slapmodify honour logging settings in branch ITS8291 at
https://github.com/mistotebe/openldap, could you paste the output of
test.out with that enabled and possibly loglevel set to -1?

Thanks,
Ondrej

Comment 4 Michael Ströder 2015-12-12 19:11:36 UTC
ondra@mistotebe.net wrote:
> On Tue, Oct 27, 2015 at 09:50:10AM +0000, michael@stroeder.com wrote:
>> Strange: testrun/test.out has zero bytes. :-/
>> But the DB files are created.
>>
>> Other tests with -b hdb seem to work ok.
>> Maybe it's just the test script?
> 
> I've let slapmodify honour logging settings in branch ITS8291 at
> https://github.com/mistotebe/openldap, could you paste the output of
> test.out with that enabled and possibly loglevel set to -1?

See test.out here:

http://www.stroeder.com/temp/openldap-its8291-test_out.gz

Ciao, Michael.


Comment 5 Ondřej Kuzník 2015-12-16 12:54:04 UTC
On Sat, Dec 12, 2015 at 07:11:43PM +0000, michael@stroeder.com wrote:
> ondra@mistotebe.net wrote:
> > On Tue, Oct 27, 2015 at 09:50:10AM +0000, michael@stroeder.com wrote:
> >> Strange: testrun/test.out has zero bytes. :-/
> >> But the DB files are created.
> >>
> >> Other tests with -b hdb seem to work ok.
> >> Maybe it's just the test script?
> > 
> > I've let slapmodify honour logging settings in branch ITS8291 at
> > https://github.com/mistotebe/openldap, could you paste the output of
> > test.out with that enabled and possibly loglevel set to -1?
> 
> See test.out here:
> 
> http://www.stroeder.com/temp/openldap-its8291-test_out.gz

Hi,
thanks for the logs, looks like an issue similar to the one fixed in
ITS#7256, this time it is only BerkeleyDB 4.8 that seems to complain
(have not tested with 4.7).

Can you test with the latest commit at branch ITS8291 in my github repo
(https://github.com/mistotebe/openldap)?

Thanks,
Ondrej

Comment 6 Michael Ströder 2015-12-16 14:46:41 UTC
ondra@mistotebe.net wrote:
> looks like an issue similar to the one fixed in
> ITS#7256, this time it is only BerkeleyDB 4.8 that seems to complain
> (have not tested with 4.7).
> 
> Can you test with the latest commit at branch ITS8291 in my github repo
> (https://github.com/mistotebe/openldap)?

I've tested your branch ITS8291 with this commit:

commit 47b7a1e29586793e87cacfa10fc50e2fc9d44b5f
Author: Ondřej Kuzník <ondra@mistotebe.net>
Date:   Wed Dec 16 13:47:17 2015 +0100

    ITS#8291 Reopen cursor after delete

./run -b hdb test007 works perfectly now.

But ./run -b mdb test062 fails with:
ldapsearch should have failed with Critical extension is unavailable (12)!
./scripts/test062-config-delete: line 164: kill: (18467) - No such process

Likely the latter is unrelated.

Ciao, Michael.

Comment 7 Michael Ströder 2015-12-16 14:59:35 UTC
michael@stroeder.com wrote:
> But ./run -b mdb test062 fails with:
> ldapsearch should have failed with Critical extension is unavailable (12)!
> ./scripts/test062-config-delete: line 164: kill: (18467) - No such process
> 
> Likely the latter is unrelated.

test062 fails *sometimes* also with upstream git master (see ITS#8151).

So your solution for test007 seems to be ok.

Ciao, Michael.


Comment 8 Quanah Gibson-Mount 2017-03-29 22:42:34 UTC
moved from Incoming to Software Bugs
Comment 9 Ondřej Kuzník 2017-03-30 08:40:54 UTC
The patches are available at
ftp://ftp.openldap.org/incoming/Ondrej-Kuznik-20170330-slapmodify-BerkeleyDB-fixes.tgz

-- 
Ondřej Kuzník
Senior Software Engineer
Symas Corporation                       http://www.symas.com
Packaged, certified, and supported LDAP solutions powered by OpenLDAP

Comment 10 Quanah Gibson-Mount 2017-08-30 21:22:02 UTC
changed notes
Comment 11 Quanah Gibson-Mount 2017-09-06 23:53:48 UTC
changed notes
Comment 12 Quanah Gibson-Mount 2017-09-12 17:12:10 UTC
changed notes
Comment 13 Quanah Gibson-Mount 2017-10-11 21:44:19 UTC
changed notes
changed state Open to Test
Comment 14 Quanah Gibson-Mount 2018-02-09 19:09:23 UTC
changed notes
Comment 15 OpenLDAP project 2019-09-11 20:56:50 UTC
fixed in master (master only)
HDB deleted from master, closing
Comment 16 Quanah Gibson-Mount 2019-09-11 20:56:50 UTC
changed notes
changed state Test to Closed