incubator-blur-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravikumar Govindarajan <ravikumar.govindara...@gmail.com>
Subject WaitUntilNotNull (Blur -0.2.2) stall
Date Thu, 19 May 2016 06:41:46 GMT
We found some of our shards were stalled yesterday & did not proceed with
indexing requests.

*Stack Trace...*

"LOW_PRIORITY_CONSUMER_0" prio=10 tid=0x00007f64cc8d3000 nid=0x3656 in
Object.wait() [0x00007f64033f2000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at org.apache.blur.manager.writer.BlurIndexSimpleWriter.waitUntilNotNull(BlurIndexSimpleWriter.java:229)
	- locked <0x000000049c8ad670> (a java.util.concurrent.atomic.AtomicReference)
	at org.apache.blur.manager.writer.BlurIndexSimpleWriter.process(BlurIndexSimpleWriter.java:342)


*BlurIndexSimpleWriter.java*

private void waitUntilNotNull(AtomicReference<?> ref) {

    while (true) {

      Object object = ref.get();

      if (object != null) {

        return;

      }

      synchronized (ref) {

        try {

          ref.wait(TimeUnit.SECONDS.toMillis(1));

        } catch (InterruptedException e) {

          return;

        }

      }

    }

  }

This code seems to be removed in latest codebase. Any reasons for it? Did
someone face this exact problem previously?

--

Ravi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message