`load_schema` race
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start in tarantool/connection.py at the linked lines around 1409-1410, then follow load_schema into tarantool/schema.py and fetch_index_all at the failing call. Reproduce the concurrent Tarantool object-creation case and inspect how the two non-transactional fetches interact. Done means load_schema no longer raises an index exception and handles a consistent schema.
Written by the indexing model from the issue text.
Description
These lines result in an index exception, trying to connect to the instance that actively applies DDL due to the race with the tarantool object creation:
As these two fetches are non-transactional, the second one can return an index for space that is not fetched at the first fetch, resulting in:
Traceback (most recent call last):
File "/python/lib/python3.11/site-packages/tarantool/connection.py", line 1097, in connect
self.load_schema()
File "/python/lib/python3.11/site-packages/tarantool/connection.py", line 1316, in load_schema
self.schema.fetch_index_all()
File "/python/lib/python3.11/site-packages/tarantool/schema.py", line 377, in fetch_index_all
SchemaIndex(row, self.schema[row[0]])
- Dominant language
- Python
- Stars
- 108
- Forks
- 51
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tarantool/tarantool-python
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
tarantool/tarantool-python#325 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
tarantool/tarantool-python#340 ·
-
3sp feature teamE
Difficulty 5/5 Over a week Newbie friendliness 25/100
tarantool/tarantool-python#309 · 1 comment ·
-
customer Database API
Difficulty 1/5 Under an hour Newbie friendliness 45/100
tarantool/tarantool-python#307 · 1 comment ·
-
1sp teamE v2
Difficulty 3/5 1-2 days Newbie friendliness 42/100
tarantool/tarantool-python#305 ·
All issues in tarantool/tarantool-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·