-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds jcstress for requester and responder operators #999
Conversation
18c96b4
to
de54cfd
Compare
@@ -186,6 +192,7 @@ public T block(@Nullable Duration timeout) { | |||
@SuppressWarnings("unchecked") | |||
final void terminate(Throwable t) { | |||
if (isDisposed()) { | |||
Operators.onErrorDropped(t, Context.empty()); | |||
return; | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also update the copy in loadbalance
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
import reactor.core.publisher.Operators; | ||
import reactor.util.context.Context; | ||
|
||
public class StressSubscriber<T> implements CoreSubscriber<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StressTestSubscriber
perhaps?
import reactor.core.CoreSubscriber; | ||
import reactor.core.publisher.Operators; | ||
|
||
public class StressSubscription<T> implements Subscription { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise StressTestSubscription
public volatile boolean concurrentOnNext; | ||
|
||
public volatile boolean concurrentOnError; | ||
|
||
public volatile boolean concurrentOnComplete; | ||
|
||
public volatile boolean concurrentOnSubscribe; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are set but not used. Am I missing something? There are others that are not used as well like droppedErrors
, onNextDiscarded
, and error
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is ported from reactor-core and should be used in the upcoming updates
893b7ea
to
3296d72
Compare
20ad9dc
to
c81c408
Compare
Signed-off-by: Oleh Dokuka <[email protected]>
Signed-off-by: Oleh Dokuka <[email protected]>
c81c408
to
61cf1cf
Compare
Adds JCStressTests Support
Motivation:
JCStress is a proven tool for making sure correctness of concurrency model used in various places
Modifications:
Adds list of JCStress tests
Result:
Better verification of concurrency related issues
Signed-off-by: Oleh Dokuka [email protected]