You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I meet an issue when trying execute multiple key on pipeline redis. The issue only appear when I have multiple different key. I assume when we set duplicate key it will execute single key.
by trying multiple key, eg :
key 1
key 2,
it will throw error
and if I try
key 1
key 1
it will success.
the problem is, I couldn't find what causing error. I try to log the error like below, but from the first (0) index it said EXECABORT Transaction discarded because of previous errors multiple key pipeline
res, err := pipeline.Exec(ctx) for _, cmd := range res { if cmd.Err() != nil { log.Debug().Interface("err", cmd.Err()).Msg("Command failed.") } else { log.Debug().Interface("cmd", cmd).Msg("Command succeeded.") } }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys, I meet an issue when trying execute multiple key on pipeline redis. The issue only appear when I have multiple different key. I assume when we set duplicate key it will execute single key.
by trying multiple key, eg :
key 1
key 2,
it will throw error
and if I try
key 1
key 1
it will success.
the problem is, I couldn't find what causing error. I try to log the error like below, but from the first (0) index it said
EXECABORT Transaction discarded because of previous errors multiple key pipeline
res, err := pipeline.Exec(ctx)
for _, cmd := range res {
if cmd.Err() != nil {
log.Debug().Interface("err", cmd.Err()).Msg("Command failed.")
} else {
log.Debug().Interface("cmd", cmd).Msg("Command succeeded.")
}
}
Beta Was this translation helpful? Give feedback.
All reactions