[
https://issues.apache.org/jira/browse/DIRSERVER-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521911
]
hirot commented on DIRSERVER-1012:
----------------------------------
I came up against TimeLimitExceededException again while the unit test was
running.
The environment is :
- Linux 2.6.9-55.ELsmp
- J2RE 1.5.0
- JUnit 4.1
- ADS 1.5.0 (embedded for the unit test)
About one second after a search started,
javax.naming.TimeLimitExceededException was thrown.
I'm sure to set 30000 ms to the client side timeout using
javax.naming.directory.SearchControls.setTimeLimits(int ms), so the exception
was caused by the server side timeout, I suppose.
I added a part of the ADS' trace as follows :
2007-08-22 14:26:08
org.apache.directory.shared.ldap.codec.TwixTransformer::transform Thread-12
FINE [ Transformed message : LdapMessage
message Id : 2
Search Result Done
Ldap Result
Result code : (TIME_LIMIT_EXCEEDED) timeLimitExceeded
Matched DN : ''
Error message : 'failed on search operation:
SearchRequest
baseDn : 'o=hq,dc=myco,dc=com'
filter : '(&
(2.5.4.50=uid=mdavis,ou=people,o=hq,dc=myco,dc=com)[9223372036854775807]
(2.5.4.0=groupofuniquenames)[3] )[3] '
scope : whole subtree
typesOnly : false
no limit
Time Limit : 31
Deref Aliases : deref Always
attributes : 'cn'
:
org.apache.directory.shared.ldap.exception.LdapTimeLimitExceededException
at
org.apache.directory.server.core.partition.PartitionNexusProxy$1.accept(PartitionNexusProxy.java:461)
at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.prefetch(SearchResultFilteringEnumeration.java:317)
at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:204)
at
org.apache.directory.server.ldap.support.SearchResponseIterator.<init>(SearchResponseIterator.java:97)
at
org.apache.directory.server.ldap.support.SearchHandler.messageReceived(SearchHandler.java:334)
at
org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:144)
at
org.apache.directory.server.ldap.LdapProtocolProvider$LdapProtocolHandler.messageReceived(LdapProtocolProvider.java:403)
at
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
at
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:190)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
at
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:803)
'
]
> TimeLimitExceededException with the embedded ADS
> ------------------------------------------------
>
> Key: DIRSERVER-1012
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1012
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects Versions: 1.5.0
> Environment: Win XP SP2 / J2RE 1.5.0 / eclipse 3.2.0 / ADS 1.5.0
> Reporter: hirot
>
> I'm using embedded Apache Directory Server for the unit testing with JUnit in
> eclipse.
> The environment is :
> - Win XP SP2
> - J2RE 1.5.0
> - eclipse 3.2.0
> - ADS 1.5.0
> Only when a search takes over around 1 second,
> javax.naming.TimeLimitExceededException is thrown as cited in the following :
> javax.naming.TimeLimitExceededException: [LDAP: error code 3 - failed on
> search operation]; remaining name 'o=hq,dc=myco,dc=com' at
> When a same search takes less than 1 second, it successfully returns results.
> I'm sure to set 30000 ms to the client side timeout using
> javax.naming.directory.SearchControls.setTimeLimits(int ms), so the exception
> is caused by the server side timeout, I suppose.
> Is the server side timeout of ADS 1 second ?
> Is there any measure to lengthen the timeout ?
> (I tried MutableServerStartupConfiguration.setMaxTimeLimit(int arg0). But I
> am not sure whether a parameter specifies ms or second, and it doesn't seem
> to work well in the embedded ADS at least because a search successfully
> returns results when I set 0 or 1 to "MaxTimeLimit".)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.