unloggedio / unlogged-sdk

Unlogged SDK for recording code execution
https://unlogged.io
Apache License 2.0
152 stars 16 forks source link

Serialization of (unavailable)Future can lead to thread stuck #52

Closed artpar closed 1 month ago

artpar commented 1 month ago

Describe the bug

its getting stuck here inside file : DetailedEventStreamAggregatedLogger

else if (value instanceof Future) {
                        Future<?> futureValue = (Future<?>) value;
                        bytes = objectMapper.get().writeValueAsBytes(futureValue.get());

Reproduction steps

  1. hazelcast with future
  2. ...

Expected behavior

application behaviour should remain unaffected

Additional context

No response

tushar886 commented 1 month ago

The issue is happening at this piece of code in Unlogged SDK

else if (value instanceof Future) {
                        Future<?> futureValue = (Future<?>) value;
                        bytes = objectMapper.get().writeValueAsBytes(futureValue.get());

its getting stuck here inside file : DetailedEventStreamAggregatedLogger

artpar commented 1 month ago

should be resolved with 0.5.1