Skip to content

Unable to get an error while using opsForHash().get() command #2210

@MariaNosareva

Description

@MariaNosareva

Hi,
I came across some strange behavior while working with ReactiveHashOperations: it seems that there is no error propagation in the case of getting value from hash by only one key (.get(key) method).

result = cmd.hget(command.getKey(), key.duplicate()).map(value -> KeyValue.fromNullable(key, value))
.map(Collections::singletonList).onErrorReturn(Collections.emptyList());

For example, if the service has trouble reconnecting to Redis, the endpoint user of that method will never know if any problems exist. But in the case of using .multiGet() (uses the same method under the hood - hMGet()) there is no such issue, all errors are delivered well.

Is there any chance of changing this behavior?

Thanks!

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions