disruptor icon indicating copy to clipboard operation
disruptor copied to clipboard

High Performance Inter-Thread Messaging Library

Results 31 disruptor issues
Sort by recently updated
recently updated
newest added

ProcessingSequenceBarrier.java ```java public long waitFor(final long sequence) throws AlertException, InterruptedException, TimeoutException { checkAlert(); long availableSequence = waitStrategy.waitFor(sequence, cursorSequence, dependentSequence, this); if (availableSequence < sequence) { return availableSequence; } return sequencer.getHighestPublishedSequence(sequence,...

**Describe the bug** With many producers and a blocking wait strategy, `SequenceBarrier.waitForSequence(nextSequence)` can return a value less than its input. Specifically, it can return `nextSequence - 1`. **To Reproduce** Run...

### I used BlockingWaitStrategy in my code,it makes my project use CPU 100% I use it for exception alert.Our system tps is not high,Fewer exceptions. As you know,I didn't use...

https://github.com/LMAX-Exchange/disruptor/blob/109e2881fa421ceac31c7aabc3b96bfd2a94587d/src/main/java/com/lmax/disruptor/SingleProducerSequencer.java#L102 What case will run this code “cachedGatingSequence > current” ? Could Consumer's sequence be more than Producer's sequence ? But this case can be possible ?

**Desktop (please complete the following information):** - OS: [win10] - Version [e.g. 3.4.4] - JVM Version [1.8.0_221] **Additional context** ![image](https://user-images.githubusercontent.com/30614369/226318440-a707d2c9-f030-4c55-bc21-c96cf4948069.png) ![image](https://user-images.githubusercontent.com/30614369/226318503-2cb8b133-0b1b-4405-8f89-666a4e5d4e7b.png) ![image](https://user-images.githubusercontent.com/30614369/226318527-0ed1dda3-1922-4b4d-a5b7-3870bc9ebb40.png) ![image](https://user-images.githubusercontent.com/30614369/226319576-8b1b7846-8c7a-4135-a6b6-9578f42cc0be.png) Can I use Disruptor like this, and...

question

In the next(n) method we used `long wrapPoint = nextSequence - bufferSize;wrapPoint > cachedGatingSequence` in determining whether a wrap occurred or not.For example, in the following figure: Let's say we've...

Fix the issue where messages are lost if a consumer that is processing an event is killed.

Description In version 3.3.6, dynamically removing a consumer thread that is currently processing a message can result in message loss. This issue occurs because the consumer thread might be terminated...

https://lmax-exchange.github.io/disruptor/disruptor.html ![image](https://github.com/user-attachments/assets/82bb02e3-147d-4a25-bd26-bce1593daf88) Ooops. ---- Also, could you a bit extend the tech paper on cache contention and on the multiple (and variable number) both consumers and producers, and why you...