Merge branch 'master' into 3.0.0

pull/1933/head
Nikita Koksharov 6 years ago
commit 584cb7c151

@ -131,7 +131,7 @@ public class CommandDecoder extends ReplayingDecoder<State> {
} }
sendNext(ctx, data); sendNext(ctx, data);
} catch (Exception e) { } catch (Exception e) {
log.error("Unable to decode data. reply: {}, channel: {}, command: {}", LogHelper.toString(in), ctx.channel(), data, e); log.error("Unable to decode data. channel: " + ctx.channel() + ", reply: " + LogHelper.toString(in) + ", command: " + LogHelper.toString(data), e);
cmd.tryFailure(e); cmd.tryFailure(e);
sendNext(ctx); sendNext(ctx);
throw e; throw e;
@ -152,7 +152,7 @@ public class CommandDecoder extends ReplayingDecoder<State> {
} }
sendNext(ctx); sendNext(ctx);
} catch (Exception e) { } catch (Exception e) {
log.error("Unable to decode data. channel: {} message: {}", ctx.channel(), LogHelper.toString(in), e); log.error("Unable to decode data. channel: " + ctx.channel() + ", reply: " + LogHelper.toString(in), e);
sendNext(ctx); sendNext(ctx);
throw e; throw e;
} }

@ -79,7 +79,7 @@ public class CommandPubSubDecoder extends CommandDecoder {
} }
sendNext(ctx); sendNext(ctx);
} catch (Exception e) { } catch (Exception e) {
log.error("Unable to decode data. channel: {} message: {}", ctx.channel(), LogHelper.toString(in), e); log.error("Unable to decode data. channel: " + ctx.channel() + ", reply: " + LogHelper.toString(in), e);
sendNext(ctx); sendNext(ctx);
throw e; throw e;
} }
@ -95,7 +95,7 @@ public class CommandPubSubDecoder extends CommandDecoder {
} }
sendNext(ctx, data); sendNext(ctx, data);
} catch (Exception e) { } catch (Exception e) {
log.error("Unable to decode data. channel: {} message: {}", ctx.channel(), LogHelper.toString(in), e); log.error("Unable to decode data. channel: " + ctx.channel() + ", reply: " + LogHelper.toString(in), e);
cmd.tryFailure(e); cmd.tryFailure(e);
sendNext(ctx); sendNext(ctx);
throw e; throw e;

@ -938,8 +938,7 @@ public class CommandAsyncService implements CommandAsyncExecutor {
TimerTask timeoutTask = new TimerTask() { TimerTask timeoutTask = new TimerTask() {
@Override @Override
public void run(Timeout timeout) throws Exception { public void run(Timeout timeout) throws Exception {
if (!details.getAttemptPromise().isDone() if (details.getAttempt() < connectionManager.getConfig().getRetryAttempts()) {
&& details.getAttempt() < connectionManager.getConfig().getRetryAttempts()) {
if (!details.getAttemptPromise().cancel(false)) { if (!details.getAttemptPromise().cancel(false)) {
return; return;
} }

Loading…
Cancel
Save