mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix: remove bad check-fail in the transaction code (#1420)
fix: remove bad check-fail in the transaction code. Fixes #1421. The failure reproduces for dragongly running with a single thread where all the arguments grouped within the same ShardData Also, we improve verbosity levels inside reply_builder.cc. For that we extend SinkReplyBuilder to support protocol errors reporting and we remove ad-hoc code for this from dragonfly_connection. Required to track errors easily with `--vmodule=reply_builder=1` Finally, a pytest is added to cover the issue. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
956b39c553
commit
69e6ad799a
11 changed files with 52 additions and 34 deletions
|
@ -133,8 +133,6 @@ void Transaction::InitShardData(absl::Span<const PerShardCache> shard_index, siz
|
|||
auto& sd = shard_data_[i];
|
||||
auto& si = shard_index[i];
|
||||
|
||||
CHECK_LT(si.args.size(), 1u << 15);
|
||||
|
||||
sd.arg_count = si.args.size();
|
||||
sd.arg_start = args_.size();
|
||||
|
||||
|
@ -157,7 +155,7 @@ void Transaction::InitShardData(absl::Span<const PerShardCache> shard_index, siz
|
|||
}
|
||||
}
|
||||
|
||||
CHECK(args_.size() == num_args);
|
||||
CHECK_EQ(args_.size(), num_args);
|
||||
}
|
||||
|
||||
void Transaction::InitMultiData(KeyIndex key_index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue