Skip to content
Snippets Groups Projects

fix: mock engine sharding (was implemented for cartridge only)

Merged Alexey Protsenko requested to merge fix_mock into main

After implementing cartridge sharding mock tests were mostly useless: we didn't see how we modify SQL according to some specific shard.

Now (in a case of the filtered buckets when we send a query to exact shards) mock engine generates SQL for every shard. This behavior differs from the cartridge engine that groups buckets by replicasets first and then generated SQL for a replicaset bucket group. But the idea of the mock engine is to detect errors but not to implement actual Tarantool. So, lets make things simple and use this approach.

Edited by Alexey Protsenko

Merge request reports

Checking pipeline status.

Merged by Alexey ProtsenkoAlexey Protsenko 2 years ago (May 17, 2022 10:28am UTC)

Loading

Pipeline #8620 passed

Pipeline passed for 3327c3bc on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading