Open GoogleCodeExporter opened 9 years ago
waitFlush is deprecated, but the problem is in fact for the optimize parameter
in commit command
Original comment by dbej...@gmail.com
on 20 Apr 2012 at 9:10
If you use trunk you'll see commit has been modified to not use the optimize
option anymore - instead it exposes the "expungeDeletes" option.
http://code.google.com/p/solr-php-client/source/browse/trunk/Apache/Solr/Service
.php#821
This was done back in r58
The deprecation of waitFlush and adding of new options might make me change the
method signature of commit all together in a future version - not sure yet.
Original comment by donovan....@gmail.com
on 24 Apr 2012 at 2:59
[deleted comment]
I think the version in the trunk now still has waitFlush in commit and optimize
method. I have to remove it manually to work with solr 4.0
Original comment by stephen....@gmail.com
on 30 Oct 2012 at 10:13
hi i am new to solr , currently working with php solr client
apche solr ver 4.3
SolrPhpClient.r60.2011-05-04
PHP Version 5.3.8
i have read the discussion , was facing the same problem on commit() and
optimize() functions 400 bad request error is thrown, from your dicussion i was
able to fix the commit() by removing the waitFlush parameter from
$rawPost = '<commit expungeDeletes="' . $expungeValue . '" waitSearcher="' .
$searcherValue . '" />';
but for the optimize(0 when i try to remove the waitFlush parameter
$rawPost = '<optimize waitSearcher="' . $searcherValue . '" />';
i start receiving the 500 internal server error, and otherwise if not removed i
receive the 400 badrequest can you help me outwith this
regards,
Omer Aslam
Original comment by buttflat...@googlemail.com
on 11 Jun 2013 at 11:45
Having the same issue with Solr 4.6.0.
Last revision still has waitFlush parameter in commit and optimize methods.
Seting it to false doesn't work.
If you remove it altoghether it works like a charm.
Fore those in need of fixing the issue, look into Apache/Solr/Service.php lines
858 and 1153
Original comment by tereva...@gmail.com
on 11 Feb 2014 at 3:36
Hi
I am using solr 4.7 and getting various kind of errors
Error 1 in solr log:
1745301 [qtp290025410-23] WARN org.apache.solr.handler.loader.XMLLoader –
XML element <add> has invalid XML attr: allowDups
1745301 [qtp290025410-23] WARN org.apache.solr.handler.loader.XMLLoader –
XML element <add> has invalid XML attr: overwritePending
1745302 [qtp290025410-23] WARN org.apache.solr.handler.loader.XMLLoader –
XML element <add> has invalid XML attr: overwriteCommitted
Error 2 in solr log:
1763433 [qtp290025410-21] ERROR org.apache.solr.core.SolrCore –
org.apache.solr.common.SolrException: Unknown commit parameter 'waitFlush'
at org.apache.solr.handler.RequestHandlerUtils.validateCommitParams(RequestHandlerUtils.java:85)
at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:263)
at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:174)
at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1916)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:780)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:217)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
Error 3 on in script:
<pre>Apache_Solr_HttpTransportException | 41a6c429807a306a08498d343f88986f |
'400' Status: Bad Request
#0 /home/rishi/projects/---------/Apache/Solr/Service.php(807):
Apache_Solr_Service->_sendRawPost(
'http://localhost:8080/core0/update?wt=json', '<commit expungeDeletes="false"
waitFlush="true" waitSearcher="true" />', '3600')
Original comment by hrishike...@fabfurnish.com
on 6 May 2014 at 12:25
remove waitFlush="true" in source is fine
Original comment by weibotes...@gmail.com
on 13 Apr 2015 at 7:04
Original issue reported on code.google.com by
dbej...@gmail.com
on 20 Apr 2012 at 8:48