Skip to content

Commit

Permalink
Merge pull request #171 from uberall/fix-loading-dataset-message
Browse files Browse the repository at this point in the history
fix detection of redis loading the dataset
  • Loading branch information
gresrun committed Dec 30, 2021
2 parents b29374c + 8fe0606 commit 7bf5435
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DefaultPoolExceptionHandler implements ExceptionHandler {
public RecoveryStrategy onException(final JobExecutor jobExecutor, final Exception exception,
final String curQueue) {
final boolean isLoadingDataset = exception instanceof JedisDataException
&& exception.getMessage().equals("LOADING Redis is loading the dataset in memory");
&& exception.getMessage().startsWith("LOADING Redis is loading the dataset in memory");

if (exception instanceof JedisConnectionException
|| exception instanceof JedisNoScriptException
Expand Down

0 comments on commit 7bf5435

Please sign in to comment.