createNamespace(ns1); createNamespace(ns2); createNamespace(ns3); loadStatements(ns1, 10000); loadStatements(ns2, 10000); loadStatements(ns3, 10000); simpleQuery(ns1); simpleQuery(ns2); simpleQuery(ns3); forceAbort(ns1); } catch (Throwable t) { loadStatements(ns2, 1000); forceAbort(ns2); } catch (Throwable t) { dropGraph(ns2); dropGraph(ns1); simpleQuery(ns1); simpleQuery(ns2); simpleQuery(ns3); loadStatements(ns2, 1000);
/** * Runs the stress test for an hour. This is the minimum required to have * confidence that the problem is not demonstrated. Multiple hour runs are * better. * * @throws Exception * * @see {@link StressTestConcurrentRestApiRequests} which provides full * coverage of the REST API within a parameterized workload. */ public void stressTest_multiTenancy_967() throws Exception { doMultiTenancyStressTest(TimeUnit.HOURS.toMillis(1)); }
private void loadStatements(final String namespace, final int nstatements) throws Exception { final Collection<Statement> stmts = new ArrayList<>(nstatements); for (int i = 0; i < nstatements; i++) { stmts.add(generateTriple()); } log.warn(String.format("Loading package into %s namespace...", namespace)); m_mgr.getRepositoryForNamespace(namespace).add(new RemoteRepository.AddOp(stmts)); log.warn(String.format("Loading package into %s namespace done", namespace)); }
private void loadStatements(final String namespace, final int nstatements) throws Exception { final Collection<Statement> stmts = new ArrayList<>(nstatements); for (int i = 0; i < nstatements; i++) { stmts.add(generateTriple()); } log.warn(String.format("Loading package into %s namespace...", namespace)); m_mgr.getRepositoryForNamespace(namespace).add(new RemoteRepository.AddOp(stmts)); log.warn(String.format("Loading package into %s namespace done", namespace)); }
createNamespace(ns1); createNamespace(ns2); createNamespace(ns3); loadStatements(ns1, 10000); loadStatements(ns2, 10000); loadStatements(ns3, 10000); simpleQuery(ns1); simpleQuery(ns2); simpleQuery(ns3); forceAbort(ns1); } catch (Throwable t) { loadStatements(ns2, 1000); forceAbort(ns2); } catch (Throwable t) { dropGraph(ns2); dropGraph(ns1); simpleQuery(ns1); simpleQuery(ns2); simpleQuery(ns3); loadStatements(ns2, 1000);
/** * Runs the stress test for an hour. This is the minimum required to have * confidence that the problem is not demonstrated. Multiple hour runs are * better. * * @throws Exception * * @see {@link StressTestConcurrentRestApiRequests} which provides full * coverage of the REST API within a parameterized workload. */ public void stressTest_multiTenancy_967() throws Exception { doMultiTenancyStressTest(TimeUnit.HOURS.toMillis(1)); }