[infinispan-issues] [JBoss JIRA] (ISPN-4651) LevelDB crashes JVM when stop() is called concurrently with write()

RH Bugzilla Integration (JIRA) issues at jboss.org
Wed Aug 20 20:47:35 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-4651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994541#comment-12994541 ] 

RH Bugzilla Integration commented on ISPN-4651:
-----------------------------------------------

Dave Stahl <dstahl at redhat.com> changed the Status of [bug 1113585|https://bugzilla.redhat.com/show_bug.cgi?id=1113585] from ASSIGNED to ON_QA

> LevelDB crashes JVM when stop() is called concurrently with write()
> -------------------------------------------------------------------
>
>                 Key: ISPN-4651
>                 URL: https://issues.jboss.org/browse/ISPN-4651
>             Project: Infinispan
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Loaders and Stores
>    Affects Versions: 7.0.0.Beta1
>            Reporter: Radim Vansa
>            Assignee: Radim Vansa
>
> This test reproduces the issue:
> {code}
>     public void testConcurrentWriteAndRestart() {
>       final int THREADS = 4;
>       final AtomicBoolean run = new AtomicBoolean(true);
>       final CountDownLatch started = new CountDownLatch(THREADS);
>       ExecutorService executor = Executors.newFixedThreadPool(THREADS);
>       for (int i = 0; i < THREADS; ++i) {
>          executor.execute(new Runnable() {
>             @Override
>             public void run() {
>                started.countDown();
>                int i = 0;
>                while (run.get()) {
>                   InternalCacheEntry entry = TestInternalCacheEntryFactory.create("k" + i, "v" + i);
>                   MarshalledEntry me = TestingUtil.marshalledEntry(entry, getMarshaller());
>                   cl.write(me);
>                   ++i;
>                }
>             }
>          });
>       }
>       try {
>          started.await();
>          Thread.sleep(1000);
>          cl.stop();
>          Thread.sleep(1000);
>          cl.start();
>          Thread.sleep(1000);
>       } catch (InterruptedException e) {
>          throw new IllegalStateException(e);
>       } finally {
>          run.set(false);
>          executor.shutdown();
>       }
>    }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the infinispan-issues mailing list