OpenIdentityPlatform / OpenDJ

OpenDJ is an LDAPv3 compliant directory service, which has been developed for the Java platform, providing a high performance, highly available, and secure store for the identities managed by your organization. Its easy installation process, combined with the power of the Java platform makes OpenDJ the simplest, fastest directory to deploy and manage.
https://www.openidentityplatform.org/opendj
Other
369 stars 103 forks source link

Access log: nentries=0 or nentries=1 #244

Closed harklib closed 1 year ago

harklib commented 2 years ago

Hi.

I have a replicated cluster with 2 servers. I've noticed doing a ldapsearch for the same entry gets logged on one of the servers with nentries=0 and on the other nentries=1. Is this normal behavior? A grep under /opt/opendj/logs returns numerous nentries=0 OR neentries=1, in general.


Server1 [18/Jul/2022:09:02:40 -0400] SEARCH REQ conn=916494 op=3 msgID=4 base="dc=university,dc=edu" scope=sub filter="(&(objectClass=CSMailForwardingPerson)(objectClass=CSContactForwardedPerson)(!(objectClass=inetLocalMailRecipient))(mail=netid1@university.edu))" attrs="objectClass,mailForwardingAddress" [18/Jul/2022:09:02:40 -0400] SEARCH RES conn=916494 op=3 msgID=4 result=0 nentries=0 etime=1

... Server2 [18/Jul/2022:09:14:02 -0400] SEARCH REQ conn=1807623 op=3 msgID=4 base="dc=university,dc=edu" scope=sub filter="(&(objectClass=CSMailForwardingPerson)(objectClass=CSContactForwardedPerson)(!(objectClass=inetLocalMailRecipient))(mail=netid1@university.edu))" attrs="objectClass,mailForwardingAddress" [18/Jul/2022:09:14:02 -0400] SEARCH RES conn=1807623 op=3 msgID=4 result=0 nentries=1 etime=1

Thanks, Brian

yavis73 commented 2 years ago

Hi, If the replication status is normal Check the index information and status of the server.

If the number of entries is too large, the index setting may not work properly. Thanks,

vharseko commented 1 year ago

cannot reproduce please provide init script