You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MetaData Push rejects meta data in Payload when using block() #1033
Regardles whether someone uses rsocket.metadataPush(...).block(); or rsocket.metadataPush(...).subscribe(...);, the behavior (besides the blocking aspect) should be identical.
Actual Behavior
When using the block() method, the operation results in a java.lang.IllegalArgumentException: Metadata push does not support metadata field. The subscribe() method does produce the expected result.
The MetadataPushRequesterMono class implements a block() method with clearly different semantics than the subscribe() method. Since that class extends Mono, the whole block() method is probably unnecessary. The implementation can use the block() implementation of Mono, which calls the subscribe() using a BlockingMonoSubscriber
Looking at the implementation of BlockingMonoSubscriber it also seems that the block(Duration) implementation doesn't take the given duration into account. Removing the method would use Mono's implementation, which does only block for the given duration.
Your Environment
RSocket version(s) used: 1.1.0 and 1.1.1 produce the issue. 1.0.4 doesn't.
For the test case, I used rsocket-core and rsocket-transport-netty
Activity
OlegDokuka commentedon Mar 18, 2022
close in favor of existing PR (#1034)