[ https://issues.apache.org/jira/browse/SOLR-1972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483445#comment-13483445 ]
Shawn Heisey commented on SOLR-1972: ------------------------------------ With this as the contructor: {code} public RequestHandlerBase() { // numRequests = Metrics.newCounter(RequestHandlerBase.class, "numRequests", this.toString()); // numErrors = Metrics.newCounter(RequestHandlerBase.class, "numErrors", this.toString()); // numTimeouts = Metrics.newCounter(RequestHandlerBase.class, "numTimeouts", this.toString()); // requestTimes = Metrics.newTimer(RequestHandlerBase.class, "requestTimes", this.toString()); numRequests = Metrics.newCounter(RequestHandlerBase.class, "numRequests"); numErrors = Metrics.newCounter(RequestHandlerBase.class, "numErrors"); numTimeouts = Metrics.newCounter(RequestHandlerBase.class, "numTimeouts"); requestTimes = Metrics.newTimer(RequestHandlerBase.class, "requestTimes"); } {code} I get the following as the failure. I suppose I should be glad that it fails, but RequestsHandlerTests, which is the test that was modified, continues to pass. {code} [junit4:junit4] Suite: org.apache.solr.handler.admin.MBeansHandlerTest [junit4:junit4] 2> 0 T297 oas.SolrTestCaseJ4.initCore ####initCore [junit4:junit4] 2> Creating dataDir: /index/src/branch_4x/solr/build/solr-core/test/J0/./solrtest-MBeansHandlerTest-1351102494087 [junit4:junit4] 2> 26 T297 oasc.SolrResourceLoader.<init> new SolrResourceLoader for directory: '/index/src/branch_4x/solr/build/solr-core/test-files/solr/collection1/' [junit4:junit4] 2> 27 T297 oasc.SolrResourceLoader.replaceClassLoader Adding 'file:/index/src/branch_4x/solr/build/solr-core/test-files/solr/collection1/lib/classes/' to classloader [junit4:junit4] 2> 27 T297 oasc.SolrResourceLoader.replaceClassLoader Adding 'file:/index/src/branch_4x/solr/build/solr-core/test-files/solr/collection1/lib/README' to classloader [junit4:junit4] 2> 59 T297 oasc.SolrConfig.<init> Using Lucene MatchVersion: LUCENE_41 [junit4:junit4] 2> 98 T297 oasc.SolrConfig.<init> Loaded SolrConfig: solrconfig.xml [junit4:junit4] 2> 98 T297 oass.IndexSchema.readSchema Reading Solr Schema [junit4:junit4] 2> 105 T297 oass.IndexSchema.readSchema Schema name=test [junit4:junit4] 2> 414 T297 oass.OpenExchangeRatesOrgProvider.init Initialized with rates=open-exchange-rates.json, refreshInterval=1440. [junit4:junit4] 2> 420 T297 oass.IndexSchema.readSchema default search field in schema is text [junit4:junit4] 2> 422 T297 oass.IndexSchema.readSchema unique key field: id [junit4:junit4] 2> 430 T297 oass.FileExchangeRateProvider.reload Reloading exchange rates from file currency.xml [junit4:junit4] 2> 432 T297 oass.FileExchangeRateProvider.reload Reloading exchange rates from file currency.xml [junit4:junit4] 2> 434 T297 oass.OpenExchangeRatesOrgProvider.reload Reloading exchange rates from open-exchange-rates.json [junit4:junit4] 2> 435 T297 oass.OpenExchangeRatesOrgProvider.reload Reloading exchange rates from open-exchange-rates.json [junit4:junit4] 2> 436 T297 oasc.SolrResourceLoader.locateSolrHome JNDI not configured for solr (NoInitialContextEx) [junit4:junit4] 2> 436 T297 oasc.SolrResourceLoader.locateSolrHome using system property solr.solr.home: /index/src/branch_4x/solr/build/solr-core/test-files/solr [junit4:junit4] 2> 436 T297 oasc.SolrResourceLoader.<init> new SolrResourceLoader for directory: '/index/src/branch_4x/solr/build/solr-core/test-files/solr/' [junit4:junit4] 2> 442 T297 oasc.CoreContainer.<init> New CoreContainer 1897850152 [junit4:junit4] 2> 442 T297 oasc.SolrCore.<init> [collection1] Opening new SolrCore at /index/src/branch_4x/solr/build/solr-core/test-files/solr/collection1/, dataDir=/index/src/branch_4x/solr/build/solr-core/test/J0/./solrtest-MBeansHandlerTest-1351102494087/ [junit4:junit4] 2> 443 T297 oasc.JmxMonitoredMap.<init> JMX monitoring is enabled. Adding Solr mbeans to JMX Server: com.sun.jmx.mbeanserver.JmxMBeanServer@201a970 [junit4:junit4] 2> 443 T297 oasc.SolrCore.getNewIndexDir New index directory detected: old=null new=/index/src/branch_4x/solr/build/solr-core/test/J0/./solrtest-MBeansHandlerTest-1351102494087/index/ [junit4:junit4] 2> 444 T297 oasc.SolrCore.initIndex WARNING [collection1] Solr index directory '/index/src/branch_4x/solr/build/solr-core/test/J0/./solrtest-MBeansHandlerTest-1351102494087/index' doesn't exist. Creating new index... [junit4:junit4] 2> 460 T297 oasc.CachingDirectoryFactory.get return new directory for /index/src/branch_4x/solr/build/solr-core/test/J0/./solrtest-MBeansHandlerTest-1351102494087/index forceNew:false [junit4:junit4] 2> 462 T297 oasc.SolrDeletionPolicy.onCommit SolrDeletionPolicy.onCommit: commits:num=1 [junit4:junit4] 2> commit{dir=MockDirWrapper(org.apache.lucene.store.SimpleFSDirectory@/index/src/branch_4x/solr/build/solr-core/test/J0/index4103741039tmp lockFactory=org.apache.lucene.store.NativeFSLockFactory@8f7fddb),segFN=segments_1,generation=1,filenames=[segments_1] [junit4:junit4] 2> 462 T297 oasc.SolrDeletionPolicy.updateCommits newest commit = 1 [junit4:junit4] 2> 462 T297 oasc.SolrCore.initWriters created xml: solr.XMLResponseWriter [junit4:junit4] 2> 464 T297 oasup.UpdateRequestProcessorChain.init inserting DistributedUpdateProcessorFactory into updateRequestProcessorChain "dedupe" [junit4:junit4] 2> 464 T297 oasup.UpdateRequestProcessorChain.init inserting DistributedUpdateProcessorFactory into updateRequestProcessorChain "dedupe-allfields" [junit4:junit4] 2> 465 T297 oasup.UpdateRequestProcessorChain.init inserting DistributedUpdateProcessorFactory into updateRequestProcessorChain "stored_sig" [junit4:junit4] 2> 465 T297 oasup.UpdateRequestProcessorChain.init inserting DistributedUpdateProcessorFactory into updateRequestProcessorChain "uniq-fields" [junit4:junit4] 2> 466 T297 oasup.UpdateRequestProcessorChain.init inserting DistributedUpdateProcessorFactory into updateRequestProcessorChain "distrib-dup-test-chain-implicit" [junit4:junit4] 2> 466 T297 oasc.RequestHandlers.initHandlersFromConfig adding lazy requestHandler: solr.ReplicationHandler [junit4:junit4] 2> 466 T297 oasc.RequestHandlers.initHandlersFromConfig created /replication: solr.ReplicationHandler [junit4:junit4] 2> 467 T297 oasc.RequestHandlers.initHandlersFromConfig created standard: solr.StandardRequestHandler [junit4:junit4] 2> 467 T297 oasc.RequestHandlers.initHandlersFromConfig created /get: solr.RealTimeGetHandler [junit4:junit4] 2> 468 T297 oasc.RequestHandlers.initHandlersFromConfig created dismax: solr.SearchHandler [junit4:junit4] 2> 469 T297 oasc.RequestHandlers.initHandlersFromConfig created mock: org.apache.solr.core.MockQuerySenderListenerReqHandler [junit4:junit4] 2> 469 T297 oasc.RequestHandlers.initHandlersFromConfig created /admin/: org.apache.solr.handler.admin.AdminHandlers [junit4:junit4] 2> 469 T297 oasc.RequestHandlers.initHandlersFromConfig created defaults: solr.StandardRequestHandler [junit4:junit4] 2> 470 T297 oasc.RequestHandlers.initHandlersFromConfig adding lazy requestHandler: solr.StandardRequestHandler [junit4:junit4] 2> 470 T297 oasc.RequestHandlers.initHandlersFromConfig created lazy: solr.StandardRequestHandler [junit4:junit4] 2> 471 T297 oasc.RequestHandlers.initHandlersFromConfig created /update: solr.UpdateRequestHandler [junit4:junit4] 2> 471 T297 oasc.RequestHandlers.initHandlersFromConfig created /terms: org.apache.solr.handler.component.SearchHandler [junit4:junit4] 2> 472 T297 oasc.RequestHandlers.initHandlersFromConfig created spellCheckCompRH: org.apache.solr.handler.component.SearchHandler [junit4:junit4] 2> 472 T297 oasc.RequestHandlers.initHandlersFromConfig created spellCheckCompRH_Direct: org.apache.solr.handler.component.SearchHandler [junit4:junit4] 2> 473 T297 oasc.RequestHandlers.initHandlersFromConfig created spellCheckWithWordbreak: org.apache.solr.handler.component.SearchHandler [junit4:junit4] 2> 473 T297 oasc.RequestHandlers.initHandlersFromConfig created spellCheckWithWordbreak_Direct: org.apache.solr.handler.component.SearchHandler [junit4:junit4] 2> 474 T297 oasc.RequestHandlers.initHandlersFromConfig created spellCheckCompRH1: org.apache.solr.handler.component.SearchHandler [junit4:junit4] 2> 475 T297 oasc.RequestHandlers.initHandlersFromConfig created tvrh: org.apache.solr.handler.component.SearchHandler [junit4:junit4] 2> 475 T297 oasc.RequestHandlers.initHandlersFromConfig created /mlt: solr.MoreLikeThisHandler [junit4:junit4] 2> 476 T297 oasc.RequestHandlers.initHandlersFromConfig created /debug/dump: solr.DumpRequestHandler [junit4:junit4] 2> 478 T297 oashl.XMLLoader.init xsltCacheLifetimeSeconds=60 [junit4:junit4] 2> 479 T297 oasc.SolrCore.initDeprecatedSupport WARNING solrconfig.xml uses deprecated <admin/gettableFiles>, Please update your config to use the ShowFileRequestHandler. [junit4:junit4] 2> 481 T297 oasc.SolrCore.initDeprecatedSupport WARNING adding ShowFileRequestHandler with hidden files: [THROW.ERROR.ON.ADD.UPDATEPROCESSOR.JS, SOLRCONFIG-HIGHLIGHT.XML, SCHEMA-REQUIRED-FIELDS.XML, SCHEMA-MINIMAL.XML, BAD-SCHEMA-DUP-DYNAMICFIELD.XML, SCHEMA-REPLICATION2.XML, TRIVIAL.UPDATEPROCESSOR1.JS, SOLRCONFIG-CACHING.XML, SOLRCONFIG-REPEATER.XML, BAD-SCHEMA-NONTEXT-ANALYZER.XML, CURRENCY.XML, SOLRCONFIG-MERGEPOLICY.XML, SOLRCONFIG-TLOG.XML, SOLRCONFIG-MASTER.XML, BAD-SCHEMA-UNIQUEKEY-MULTIVALUED.XML, SCHEMA11.XML, SOLRCONFIG-BASIC.XML, DA_COMPOUNDDICTIONARY.TXT, MISSLEADING.EXTENSION.UPDATEPROCESSOR.JS.TXT, SCHEMA-COPYFIELD-TEST.XML, SOLRCONFIG-SLAVE.XML, SOLRCONFIG-PROPINJECT-INDEXDEFAULT.XML, ELEVATE.XML, TRIVIAL.UPDATEPROCESSOR0.JS, BAD-SOLRCONFIG-BOGUS-SCRIPTENGINE-NAME.XML, SCHEMA-CHARFILTERS.XML, SCHEMA-IB.XML, SOLRCONFIG-QUERYSENDER.XML, SCHEMA-REPLICATION1.XML, DA_UTF8.XML, SOLRCONFIG-SNIPPET-PROCESSOR.XML, CONDITIONAL.UPDATEPROCESSOR.JS, MISSING.FUNCTIONS.UPDATEPROCESSOR.JS, SOLRCONFIG-ENABLEPLUGIN.XML, HYPHENATION.DTD, SCHEMA-PHRASESUGGEST.XML, STEMDICT.TXT, HUNSPELL-TEST.AFF, SCHEMA-SNIPPET-TYPE.XML, STOPTYPES-1.TXT, STOPWORDSWRONGENCODING.TXT, SCHEMA-NUMERIC.XML, SOLRCONFIG-TRANSFORMERS.XML, SOLRCONFIG-PROPINJECT.XML, BAD-SCHEMA-NOT-INDEXED-BUT-TF.XML, SOLRCONFIG-SIMPLELOCK.XML, WDFTYPES.TXT, STOPTYPES-2.TXT, SCHEMA-REVERSED.XML, BAD-SCHEMA-CURRENCY-FT-MULTIVALUED.XML, SOLRCONFIG-SPELLCHECKCOMPONENT.XML, BAD-SCHEMA-CURRENCY-MULTIVALUED.XML, SCHEMA-DFR.XML, SOLRCONFIG-PHRASESUGGEST.XML, BAD-SCHEMA-NOT-INDEXED-BUT-POS.XML, KEEP-1.TXT, OPEN-EXCHANGE-RATES.JSON, SCHEMA-SPATIAL.XML, STOPWITHBOM.TXT, SOLRCONFIG-SPELLCHECKER.XML, SCHEMA-BINARYFIELD.XML, SOLRCONFIG-UPDATE-PROCESSOR-CHAINS.XML, BAD-SCHEMA-OMIT-TF-BUT-NOT-POS.XML, BAD-SCHEMA-DUP-FIELDTYPE.XML, SCHEMA-XINCLUDE.XML, SOLRCONFIG-MASTER1.XML, SYNONYMS.TXT, BAD-SCHEMA-CURRENCY-DYNAMIC-MULTIVALUED.XML, SCHEMA.XML, SCHEMA_CODEC.XML, SOLRCONFIG-SOLR-749.XML, SOLRCONFIG-MASTER1-KEEPONEBACKUP.XML, STOP-2.TXT, SOLRCONFIG-FUNCTIONQUERY.XML, SOLRCONFIG-TERMINDEX.XML, SCHEMA-LMDIRICHLET.XML, SOLRCONFIG-ELEVATE.XML, STOPWORDS.TXT, SCHEMA-FOLDING.XML, SCHEMA-STOP-KEEP.XML, BAD-SCHEMA-NOT-INDEXED-BUT-NORMS.XML, SOLRCONFIG-SOLCOREPROPERTIES.XML, STOP-1.TXT, SOLRCONFIG-MASTER2.XML, SCHEMA-SPELLCHECKER.XML, SOLRCONFIG-RESPONSE-LOG-COMPONENT.XML, SOLRCONFIG-LAZYWRITER.XML, SCHEMA-LUCENEMATCHVERSION.XML, FRENCHARTICLES.TXT, BAD-MP-SOLRCONFIG.XML, SCHEMA15.XML, SOLRCONFIG-REQHANDLER.INCL, SCHEMASURROUND.XML, SCHEMA-COLLATEFILTER.XML, SOLRCONFIG-MASTER3.XML, HUNSPELL-TEST.DIC, SOLRCONFIG-XINCLUDE.XML, BAD-SCHEMA-CODEC-GLOBAL-VS-FT-MISMATCH.XML, SOLRCONFIG-SLAVE1.XML, SOLRCONFIG-DELPOLICY1.XML, SCHEMA-SIM.XML, SCHEMA-SNIPPET-FIELD.XML, SCHEMA-COLLATE.XML, STOP-SNOWBALL.TXT, BAD-SCHEMA-SIM-GLOBAL-VS-FT-MISMATCH.XML, PROTWORDS.TXT, SCHEMA-TRIE.XML, SOLRCONFIG_CODEC.XML, BAD-SOLRCONFIG-INVALID-SCRIPTFILE.XML, JASUGGEST.TXT, SCHEMA-TFIDF.XML, SOLRCONFIG-SCRIPT-UPDATEPROCESSOR.XML, SCHEMA-LMJELINEKMERCER.XML, PHRASESUGGEST.TXT, BAD-SOLRCONFIG-MISSING-SCRIPTFILE.XML, SOLRCONFIG-BASIC-LUCENEVERSION31.XML, BAD-SCHEMA-UNIQUEKEY-USES-DEFAULT.XML, OLD_SYNONYMS.TXT, SOLRCONFIG-DELPOLICY2.XML, SOLRCONFIG-NATIVELOCK.XML, XSLT, BAD-SCHEMA-DUP-FIELD.XML, SOLRCONFIG-NOCACHE.XML, SCHEMA-BM25.XML, ADDFIELDS.UPDATEPROCESSOR.JS, SOLRCONFIG-QUERYSENDER-NOQUERY.XML, SOLRCONFIG-ALTDIRECTORY.XML, COMPOUNDDICTIONARY.TXT, SOLRCONFIG-INDEXCONFIG.XML, SOLRCONFIG_PERF.XML, SCHEMA-NOT-REQUIRED-UNIQUE-KEY.XML, BAD-SCHEMA-ANALYZER-CLASS-AND-NESTED.XML, KEEP-2.TXT, BAD-SCHEMA-UNIQUEKEY-IS-COPYFIELD-DEST.XML, SCHEMA12.XML, MAPPING-ISOLATIN1ACCENT.TXT, BAD_SOLRCONFIG.XML, BAD-SCHEMA-EXTERNAL-FILEFIELD.XML] [junit4:junit4] 2> 511 T297 oass.SolrIndexSearcher.<init> Opening Searcher@63012d7c main [junit4:junit4] 2> 511 T297 oass.SolrIndexSearcher.getIndexDir WARNING WARNING: Directory impl does not support setting indexDir: org.apache.lucene.store.MockDirectoryWrapper [junit4:junit4] 2> 511 T297 oasu.CommitTracker.<init> Hard AutoCommit: disabled [junit4:junit4] 2> 512 T297 oasu.CommitTracker.<init> Soft AutoCommit: disabled [junit4:junit4] 2> 512 T297 oashc.SpellCheckComponent.inform Initializing spell checkers [junit4:junit4] 2> 621 T297 oass.DirectSolrSpellChecker.init init: {name=direct,classname=DirectSolrSpellChecker,field=lowerfilt,minQueryLength=3} [junit4:junit4] 2> 1097 T297 oashc.HttpShardHandlerFactory.getParameter Setting socketTimeout to: 0 [junit4:junit4] 2> 1098 T297 oashc.HttpShardHandlerFactory.getParameter Setting urlScheme to: http:// [junit4:junit4] 2> 1098 T297 oashc.HttpShardHandlerFactory.getParameter Setting connTimeout to: 0 [junit4:junit4] 2> 1098 T297 oashc.HttpShardHandlerFactory.getParameter Setting maxConnectionsPerHost to: 20 [junit4:junit4] 2> 1099 T297 oashc.HttpShardHandlerFactory.getParameter Setting corePoolSize to: 0 [junit4:junit4] 2> 1099 T297 oashc.HttpShardHandlerFactory.getParameter Setting maximumPoolSize to: 2147483647 [junit4:junit4] 2> 1099 T297 oashc.HttpShardHandlerFactory.getParameter Setting maxThreadIdleTime to: 5 [junit4:junit4] 2> 1099 T297 oashc.HttpShardHandlerFactory.getParameter Setting sizeOfQueue to: -1 [junit4:junit4] 2> 1100 T297 oashc.HttpShardHandlerFactory.getParameter Setting fairnessPolicy to: false [junit4:junit4] 2> 1100 T297 oascsi.HttpClientUtil.createClient Creating new http client, config:maxConnectionsPerHost=20&maxConnections=10000&socketTimeout=0&connTimeout=0&retry=false [junit4:junit4] 2> 1108 T298 oasc.SolrCore.registerSearcher [collection1] Registered new searcher Searcher@63012d7c main{StandardDirectoryReader(segments_1:1)} [junit4:junit4] 2> 1115 T297 oasc.CoreContainer.register registering core: collection1 [junit4:junit4] 2> 1117 T297 oas.SolrTestCaseJ4.initCore ####initCore end [junit4:junit4] 2> 1120 T297 oas.SolrTestCaseJ4.setUp ###Starting testDiff [junit4:junit4] 2> ASYNC NEW_CORE C21 name=collection1 org.apache.solr.core.SolrCore@2356df1d [junit4:junit4] 2> 1124 T297 C21 REQ [collection1] webapp=null path=null params={stats=true&wt=xml&qt=/admin/mbeans} status=0 QTime=3 [junit4:junit4] 2> 1314 T297 C21 REQ [collection1] webapp=null path=null params={diff=true&stats=true&wt=xml&qt=/admin/mbeans} status=0 QTime=185 [junit4:junit4] 2> 1342 T297 oas.SolrTestCaseJ4.tearDown ###Ending testDiff [junit4:junit4] 2> NOTE: reproduce with: ant test -Dtestcase=MBeansHandlerTest -Dtests.method=testDiff -Dtests.seed=E7FE1832E8E65C65 -Dtests.slow=true -Dtests.locale=zh_CN -Dtests.timezone=America/Indiana/Petersburg -Dtests.file.encoding=UTF-8 [junit4:junit4] FAILURE 0.26s J0 | MBeansHandlerTest.testDiff <<< [junit4:junit4] > Throwable #1: org.junit.ComparisonFailure: expected:<Was: [1, Now: 2], Delta: 1> but was:<Was: [278, Now: 279], Delta: 1> [junit4:junit4] > at __randomizedtesting.SeedInfo.seed([E7FE1832E8E65C65:22E8DCA9F8506405]:0) [junit4:junit4] > at org.junit.Assert.assertEquals(Assert.java:125) [junit4:junit4] > at org.junit.Assert.assertEquals(Assert.java:147) [junit4:junit4] > at org.apache.solr.handler.admin.MBeansHandlerTest.testDiff(MBeansHandlerTest.java:63) [junit4:junit4] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit4:junit4] > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [junit4:junit4] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [junit4:junit4] > at java.lang.reflect.Method.invoke(Method.java:601) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1559) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:79) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:737) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:773) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:787) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:53) [junit4:junit4] > at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50) [junit4:junit4] > at org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51) [junit4:junit4] > at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55) [junit4:junit4] > at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48) [junit4:junit4] > at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70) [junit4:junit4] > at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) [junit4:junit4] > at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358) [junit4:junit4] > at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:782) [junit4:junit4] > at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:442) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:746) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:648) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:682) [junit4:junit4] > at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:693) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:53) [junit4:junit4] > at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) [junit4:junit4] > at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) [junit4:junit4] > at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43) [junit4:junit4] > at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) [junit4:junit4] > at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70) [junit4:junit4] > at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55) [junit4:junit4] > at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) [junit4:junit4] > at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358) [junit4:junit4] > at java.lang.Thread.run(Thread.java:722) [junit4:junit4] 2> 1375 T297 oas.SolrTestCaseJ4.deleteCore ###deleteCore [junit4:junit4] 2> 1376 T297 oasc.CoreContainer.shutdown Shutting down CoreContainer instance=1897850152 [junit4:junit4] 2> 1376 T297 oasc.SolrCore.close [collection1] CLOSING SolrCore org.apache.solr.core.SolrCore@2356df1d [junit4:junit4] 2> 1391 T297 oasu.DirectUpdateHandler2.close closing DirectUpdateHandler2{commits=0,autocommits=0,soft autocommits=0,optimizes=0,rollbacks=0,expungeDeletes=0,docsPending=0,adds=0,deletesById=0,deletesByQuery=0,errors=0,cumulative_adds=0,cumulative_deletesById=0,cumulative_deletesByQuery=0,cumulative_errors=0} [junit4:junit4] 2> 1392 T297 oasc.SolrCore.decrefSolrCoreState Closing SolrCoreState [junit4:junit4] 2> 1392 T297 oasu.DefaultSolrCoreState.closeIndexWriter SolrCoreState ref count has reached 0 - closing IndexWriter [junit4:junit4] 2> 1392 T297 oasu.DefaultSolrCoreState.closeIndexWriter closing IndexWriter with IndexWriterCloser [junit4:junit4] 2> 1393 T297 oasc.SolrCore.closeSearcher [collection1] Closing main searcher on request. [junit4:junit4] 2> NOTE: test params are: codec=Lucene41: {}, sim=RandomSimilarityProvider(queryNorm=true,coord=no): {}, locale=zh_CN, timezone=America/Indiana/Petersburg [junit4:junit4] 2> NOTE: Linux 2.6.32-279.9.1.el6.centos.plus.x86_64 amd64/Oracle Corporation 1.7.0_09 (64-bit)/cpus=4,threads=1,free=125313208,total=262733824 [junit4:junit4] 2> NOTE: All tests run in this JVM: [TestSolrDeletionPolicy1, JsonLoaderTest, TestArbitraryIndexDir, SolrCmdDistributorTest, ShowFileRequestHandlerTest, TestMultiCoreConfBootstrap, TestCSVResponseWriter, NotRequiredUniqueKeyTest, AlternateDirectoryTest, SearchHandlerTest, DateMathParserTest, NoCacheHeaderTest, QueryEqualityTest, OpenExchangeRatesOrgProviderTest, QueryElevationComponentTest, TestSolrDeletionPolicy2, FileUtilsTest, DirectSolrSpellCheckerTest, TestJmxMonitoredMap, TestStressLucene, TimeZoneUtilsTest, MBeansHandlerTest] [junit4:junit4] Completed on J0 in 1.41s, 1 test, 1 failure <<< FAILURES! {code} > Need additional query stats in admin interface - median, 95th and 99th > percentile > --------------------------------------------------------------------------------- > > Key: SOLR-1972 > URL: https://issues.apache.org/jira/browse/SOLR-1972 > Project: Solr > Issue Type: Improvement > Components: web gui > Affects Versions: 1.4 > Reporter: Shawn Heisey > Assignee: Alan Woodward > Priority: Minor > Fix For: 4.1 > > Attachments: elyograg-1972-3.2.patch, elyograg-1972-3.2.patch, > elyograg-1972-trunk.patch, elyograg-1972-trunk.patch, > SOLR-1972-branch3x-url_pattern.patch, SOLR-1972-branch4x.patch, > SOLR-1972-branch4x.patch, SOLR-1972_metrics.patch, SOLR-1972_metrics.patch, > SOLR-1972_metrics.patch, SOLR-1972_metrics.patch, SOLR-1972.patch, > SOLR-1972.patch, SOLR-1972.patch, SOLR-1972.patch, SOLR-1972-url_pattern.patch > > > I would like to see more detailed query statistics from the admin GUI. This > is what you can get now: > requests : 809 > errors : 0 > timeouts : 0 > totalTime : 70053 > avgTimePerRequest : 86.59209 > avgRequestsPerSecond : 0.8148785 > I'd like to see more data on the time per request - median, 95th percentile, > 99th percentile, and any other statistical function that makes sense to > include. In my environment, the first bunch of queries after startup tend to > take several seconds each. I find that the average value tends to be useless > until it has several thousand queries under its belt and the caches are > thoroughly warmed. The statistical functions I have mentioned would quickly > eliminate the influence of those initial slow queries. > The system will have to store individual data about each query. I don't know > if this is something Solr does already. It would be nice to have a > configurable count of how many of the most recent data points are kept, to > control the amount of memory the feature uses. The default value could be > something like 1024 or 4096. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org