[ 
https://issues.apache.org/jira/browse/SOLR-10867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amrit Sarkar updated SOLR-10867:
--------------------------------
    Attachment: SOLR-10867.patch

Got everything in order, revamped all the tests but running into temp_index & 
cache directories error while deleting and thread leaks all over the place.

error attached ::

{code}
   [junit4]   2> 40694 INFO  (coreCloseExecutor-34-thread-1) [    
x:collection1] o.a.s.c.SolrCore [collection1]  CLOSING SolrCore 
org.apache.solr.core.SolrCore@3db54c55
   [junit4]   2> 40705 INFO  (coreCloseExecutor-34-thread-1) [    
x:collection1] o.a.s.m.SolrMetricManager Closing metric reporters for 
registry=solr.core.collection1, tag=1035291733
   [junit4]   2> 53230 ERROR (coreCloseExecutor-34-thread-1) [    
x:collection1] o.a.s.c.CachingDirectoryFactory Timeout waiting for all 
directory ref counts to be released - gave up waiting on 
CachedDir<<refCount=1;path=/Users/amritsarkar/git_space/solr-june/lucene-solr/solr/build/solr-core/test/J0/temp/solr.update.processor.ClassificationUpdateProcessorFactoryTest_CB3D76759FFD28BA-001/init-core-data-001/index;done=false>>
   [junit4]   2> 53231 ERROR (coreCloseExecutor-34-thread-1) [    
x:collection1] o.a.s.c.CachingDirectoryFactory Error closing 
directory:org.apache.solr.common.SolrException: Timeout waiting for all 
directory ref counts to be released - gave up waiting on 
CachedDir<<refCount=1;path=/Users/amritsarkar/git_space/solr-june/lucene-solr/solr/build/solr-core/test/J0/temp/solr.update.processor.ClassificationUpdateProcessorFactoryTest_CB3D76759FFD28BA-001/init-core-data-001/index;done=false>>
   [junit4]   2>        at 
org.apache.solr.core.CachingDirectoryFactory.close(CachingDirectoryFactory.java:177)
   [junit4]   2>        at 
org.apache.solr.core.SolrCore.close(SolrCore.java:1617)
   [junit4]   2>        at 
org.apache.solr.core.SolrCores.lambda$close$0(SolrCores.java:132)
   [junit4]   2>        at 
java.util.concurrent.FutureTask.run(FutureTask.java:266)
   [junit4]   2>        at 
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
   [junit4]   2>        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   [junit4]   2>        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>        at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> 
   [junit4]   2> 53233 ERROR (coreCloseExecutor-34-thread-1) [    
x:collection1] o.a.s.c.SolrCore java.lang.AssertionError: 1
   [junit4]   2>        at 
org.apache.solr.core.CachingDirectoryFactory.close(CachingDirectoryFactory.java:191)
   [junit4]   2>        at 
org.apache.solr.core.SolrCore.close(SolrCore.java:1617)
   [junit4]   2>        at 
org.apache.solr.core.SolrCores.lambda$close$0(SolrCores.java:132)
   [junit4]   2>        at 
java.util.concurrent.FutureTask.run(FutureTask.java:266)
   [junit4]   2>        at 
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
   [junit4]   2>        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   [junit4]   2>        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>        at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> 
   [junit4]   2> 53233 ERROR (coreCloseExecutor-34-thread-1) [    
x:collection1] o.a.s.c.SolrCores Error shutting down 
core:java.lang.AssertionError: 1
   [junit4]   2>        at 
org.apache.solr.core.CachingDirectoryFactory.close(CachingDirectoryFactory.java:191)
   [junit4]   2>        at 
org.apache.solr.core.SolrCore.close(SolrCore.java:1617)
   [junit4]   2>        at 
org.apache.solr.core.SolrCores.lambda$close$0(SolrCores.java:132)
   [junit4]   2>        at 
java.util.concurrent.FutureTask.run(FutureTask.java:266)
   [junit4]   2>        at 
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
   [junit4]   2>        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   [junit4]   2>        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>        at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> 
   [junit4]   2> NOTE: leaving temporary files on disk at: 
/Users/amritsarkar/git_space/solr-june/lucene-solr/solr/build/solr-core/test/J0/temp/solr.update.processor.ClassificationUpdateProcessorFactoryTest_CB3D76759FFD28BA-001
   [junit4]   2> Jun 12, 2017 2:13:52 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
   [junit4]   2> WARNING: Will linger awaiting termination of 8 leaked 
thread(s).
   [junit4]   2> Jun 12, 2017 2:14:12 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
   [junit4]   2> SEVERE: 8 threads leaked from SUITE scope at 
org.apache.solr.update.processor.ClassificationUpdateProcessorFactoryTest: 
   [junit4]   2>    1) Thread[id=16, name=Thread-1, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Object.wait(Native Method)
   [junit4]   2>         at java.lang.Object.wait(Object.java:502)
   [junit4]   2>         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]   2>    2) Thread[id=24, name=searcherExecutor-18-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at sun.misc.Unsafe.park(Native Method)
   [junit4]   2>         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]   2>         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]   2>         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2>    3) Thread[id=18, name=searcherExecutor-7-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at sun.misc.Unsafe.park(Native Method)
   [junit4]   2>         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]   2>         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]   2>         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2>    4) Thread[id=20, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Thread.sleep(Native Method)
   [junit4]   2>         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2>    5) Thread[id=22, name=Thread-2, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Object.wait(Native Method)
   [junit4]   2>         at java.lang.Object.wait(Object.java:502)
   [junit4]   2>         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]   2>    6) Thread[id=13, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Thread.sleep(Native Method)
   [junit4]   2>         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2>    7) Thread[id=14, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Thread.sleep(Native Method)
   [junit4]   2>         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2>    8) Thread[id=19, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Thread.sleep(Native Method)
   [junit4]   2>         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> Jun 12, 2017 2:14:12 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl tryToInterruptAll
   [junit4]   2> INFO: Starting to interrupt leaked threads:
   [junit4]   2>    1) Thread[id=16, name=Thread-1, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>    2) Thread[id=24, name=searcherExecutor-18-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>    3) Thread[id=18, name=searcherExecutor-7-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>    4) Thread[id=20, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>    5) Thread[id=22, name=Thread-2, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>    6) Thread[id=13, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>    7) Thread[id=14, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>    8) Thread[id=19, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2> Jun 12, 2017 2:14:15 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl tryToInterruptAll
   [junit4]   2> SEVERE: There are still zombie threads that couldn't be 
terminated:
   [junit4]   2>    1) Thread[id=16, name=Thread-1, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Object.wait(Native Method)
   [junit4]   2>         at java.lang.Object.wait(Object.java:502)
   [junit4]   2>         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]   2>    2) Thread[id=24, name=searcherExecutor-18-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at sun.misc.Unsafe.park(Native Method)
   [junit4]   2>         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]   2>         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]   2>         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2>    3) Thread[id=18, name=searcherExecutor-7-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at sun.misc.Unsafe.park(Native Method)
   [junit4]   2>         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]   2>         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]   2>         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]   2>         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:745)
   [junit4]   2>    4) Thread[id=22, name=Thread-2, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]   2>         at java.lang.Object.wait(Native Method)
   [junit4]   2>         at java.lang.Object.wait(Object.java:502)
   [junit4]   2>         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): {}, 
docValues:{}, maxPointsInLeafNode=1361, maxMBSortInHeap=6.604083401501194, 
sim=RandomSimilarity(queryNorm=false): {}, locale=en-AU, 
timezone=Europe/Ljubljana
   [junit4]   2> NOTE: Mac OS X 10.12.5 x86_64/Oracle Corporation 1.8.0_102 
(64-bit)/cpus=4,threads=5,free=195571224,total=226492416
   [junit4]   2> NOTE: All tests run in this JVM: 
[ClassificationUpdateProcessorFactoryTest]
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=ClassificationUpdateProcessorFactoryTest 
-Dtests.seed=CB3D76759FFD28BA -Dtests.slow=true -Dtests.locale=en-AU 
-Dtests.timezone=Europe/Ljubljana -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.00s | ClassificationUpdateProcessorFactoryTest (suite) <<<
   [junit4]    > Throwable #1: 
com.carrotsearch.randomizedtesting.ThreadLeakError: 8 threads leaked from SUITE 
scope at 
org.apache.solr.update.processor.ClassificationUpdateProcessorFactoryTest: 
   [junit4]    >    1) Thread[id=16, name=Thread-1, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Object.wait(Native Method)
   [junit4]    >         at java.lang.Object.wait(Object.java:502)
   [junit4]    >         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]    >    2) Thread[id=24, name=searcherExecutor-18-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at sun.misc.Unsafe.park(Native Method)
   [junit4]    >         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]    >         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]    >         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >    3) Thread[id=18, name=searcherExecutor-7-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at sun.misc.Unsafe.park(Native Method)
   [junit4]    >         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]    >         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]    >         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >    4) Thread[id=20, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Thread.sleep(Native Method)
   [junit4]    >         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >    5) Thread[id=22, name=Thread-2, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Object.wait(Native Method)
   [junit4]    >         at java.lang.Object.wait(Object.java:502)
   [junit4]    >         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]    >    6) Thread[id=13, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Thread.sleep(Native Method)
   [junit4]    >         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >    7) Thread[id=14, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Thread.sleep(Native Method)
   [junit4]    >         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >    8) Thread[id=19, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Thread.sleep(Native Method)
   [junit4]    >         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([CB3D76759FFD28BA]:0)Throwable #2: 
com.carrotsearch.randomizedtesting.ThreadLeakError: There are still zombie 
threads that couldn't be terminated:
   [junit4]    >    1) Thread[id=16, name=Thread-1, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Object.wait(Native Method)
   [junit4]    >         at java.lang.Object.wait(Object.java:502)
   [junit4]    >         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]    >    2) Thread[id=24, name=searcherExecutor-18-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at sun.misc.Unsafe.park(Native Method)
   [junit4]    >         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]    >         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]    >         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >    3) Thread[id=18, name=searcherExecutor-7-thread-1, 
state=WAITING, group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at sun.misc.Unsafe.park(Native Method)
   [junit4]    >         at 
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
   [junit4]    >         at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
   [junit4]    >         at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
   [junit4]    >         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]    >         at java.lang.Thread.run(Thread.java:745)
   [junit4]    >    4) Thread[id=22, name=Thread-2, state=WAITING, 
group=TGRP-ClassificationUpdateProcessorFactoryTest]
   [junit4]    >         at java.lang.Object.wait(Native Method)
   [junit4]    >         at java.lang.Object.wait(Object.java:502)
   [junit4]    >         at 
org.apache.solr.core.CloserThread.run(CoreContainer.java:1580)
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([CB3D76759FFD28BA]:0)
   [junit4] Completed [1/1 (1!)] in 77.97s, 3 tests, 3 errors <<< FAILURES!
   [junit4] 
   [junit4] 
   [junit4] Tests with failures [seed: CB3D76759FFD28BA]:
   [junit4]   - 
org.apache.solr.update.processor.ClassificationUpdateProcessorFactoryTest.init_fullArgs_shouldInitFullClassificationParams
   [junit4]   - 
org.apache.solr.update.processor.ClassificationUpdateProcessorFactoryTest 
(suite)
{code}

What's wrong.

> Make ClassificationUpdateProcessorFactory as Runtime URP; take params(s) with 
> request
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-10867
>                 URL: https://issues.apache.org/jira/browse/SOLR-10867
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: update
>            Reporter: Amrit Sarkar
>            Priority: Minor
>         Attachments: SOLR-10867.patch, SOLR-10867.patch
>
>
> We are trying to get rid of processor definitions in SolrConfig for all URPs 
> and take parameters in the request itself.
> ClassificationUpdateProcessorFactory will be able to execute by sample curl 
> like below:
> {code}
> curl -X POST -H Content-Type: application/json  
> http://localhost:8983/solr/test/update/json/docs?processor=Classification&classification.fieldName=url_s&classification.classField=training&commit=true
>  --data-binary { "id" : "1" , "url_s" : "http://www.example.com/subroot"; }
> {code}
> All the param(s) for this URP available can be passed as request handler 
> param(s).
> Configuration for ClassificationUpdateProcessorFactory in solrconfig.xml is 
> optional.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to