MCPcopy Create free account
hub / github.com/apache/solr / call

Method call

solr/core/src/test/org/apache/solr/core/SolrCoreTest.java:230–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228 }
229
230 @Override
231 public Integer call() {
232 SolrCore core = null;
233 int r = 0;
234 try {
235 for (int l = 0; l < LOOP; ++l) {
236 r += 1;
237 core = cores.getCore(SolrTestCaseJ4.DEFAULT_TEST_CORENAME);
238 // sprinkle concurrency hinting...
239 yieldInt(l);
240 assertTrue("Refcount < 1", core.getOpenCount() >= 1);
241 yieldInt(l);
242 assertTrue("Refcount > 17", core.getOpenCount() <= 17);
243 yieldInt(l);
244 assertFalse("Handler is closed", handler1.closed);
245 yieldInt(l);
246 core.close();
247 core = null;
248 yieldInt(l);
249 }
250 return r;
251 } finally {
252 if (core != null) core.close();
253 }
254 }
255 };
256 callees.add(call);
257 }

Callers

nothing calls this directly

Calls 4

yieldIntMethod · 0.95
getOpenCountMethod · 0.95
closeMethod · 0.95
getCoreMethod · 0.65

Tested by

no test coverage detected