Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_concurrent_stores (0.07 sec)

  1. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

            callback.store(new DataStoreParams(), new HashMap<>());
    
            // Execution time should be greater than 0
            assertTrue(callback.getExecuteTime() >= 10L);
        }
    
        public void test_concurrent_stores() {
            // Test thread-safe implementation
            final AtomicLong counter = new AtomicLong(0);
    
            IndexUpdateCallback callback = new IndexUpdateCallback() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

            indexUpdateCallback.store(paramMap, dataMap);
    
            // Should keep existing doc_id
            assertEquals("existing-doc-id", dataMap.get("doc_id"));
        }
    
        public void test_concurrentStore() throws Exception {
            // Test thread safety
            final int threadCount = 10;
            final int docsPerThread = 10;
            final List<Thread> threads = new ArrayList<>();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
Back to top