• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 8656860575
88%

Build:
DEFAULT BRANCH: master
Ran 12 Apr 2024 04:24AM UTC
Jobs 1
Files 513
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Apr 2024 04:13AM UTC coverage: 87.026% (-0.01%) from 87.036%
8656860575

push

github

ImeevMA
connpool: prefer_ro and prefer_rw for call()

This patch introduces "prefer_ro" and "prefer_rw" values for the "mode"
option for the "call()" function.

Closes #9930

@TarantoolBot document
Title: The `mode` option for `call()` and `filter()`

The new `mode` option is now supported by the `call()` and `filter()`
functions from the `experimental.connpool` module. This option allows to
filter candidates based on their `read-only` status.

The `filter()` function supports three values of the `mode` option:
1) `nil` means that the `read_only` status of the instance is not
   checked;
2) `ro` means that only instances with `read_only == true` are
   considered;
3) `rw` means that only instances with `read_only == false` are
   considered.

The `call()` function supports five values of the `mode` option:
1) `nil` means that the `read_only` status of the instance is not
   checked when instance is selected to execute `call()`;
2) `ro` means that only instances with `read_only == true` are
   considered when instance is selected to execute `call()`;
3) `rw` means that only instances with `read_only == false` are
   considered when instance is selected to execute `call()`.
4) `prefer_ro` means that `call()` will only be executed on instances
   with `read_only == false` if it is not possible to execute it on
   instances with `read_only == true`;
5) `prefer_rw` means that `call()` will only be executed on instances
   with `read_only == true` if it is not possible to execute it on
   instances with `read_only == false`.

Note that if this option is not `nil`, a connection will be attempted to
each instance in the config if a connection does not exist. This means
that any of these functions can potentially block for a maximum of
`<number of instances> * 10` seconds.

67237 of 119671 branches covered (56.18%)

99894 of 114787 relevant lines covered (87.03%)

2472455.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8656860575.1 12 Apr 2024 04:24AM UTC 0
87.03
GitHub Action Run
Source Files on build 8656860575
Detailed source file information is not available for this build.
  • Back to Repo
  • 60fdffbb on github
  • Prev Build on master (#8653384859)
  • Next Build on master (#8663639615)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc