* `HaproxyShardingPublisherStrategy` has to transform any exception into
a `Mono.error()`.
* `DataChannel.onPartitionsAssigned(..)` has to log and swallow errors
during the propagation of the shard-ownership.
import lombok.extern.slf4j.Slf4j;
import reactor.core.publisher.Mono;
-import java.io.IOException;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
socketChannel.close();
return Mono.just(instanceId);
}
- catch (IOException e)
+ catch (Exception e)
{
return Mono.error(e);
}
"Could not publish instance {} as owner of shard {}: {}",
instanceId,
partition,
- throwable))
+ throwable.toString()))
+ .onErrorComplete()
.block();
});