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
ensure_tables() compares key names only (table.py, sync_with), although its docstring promises a TypeError when the table's key differs; description.attribute_types holds the types. A table created with ("sensor", "N"), ("seq", "S") for a model with sensor: str, seq: int passes, and every later write fails with "Type mismatch for key".
Concurrent create_tables(exist_ok=True) or ensure_tables() raise ResourceInUseError (client.py): they check that the table exists and then send CreateTable, without handling a table created in between. Two replicas starting together, or pytest-xdist workers, fail. Treat ResourceInUseError as "exists" when exist_ok (and wait for the table).
Found in a review of the library for bugs (fctl session); the fixes that fit in its ten pull requests are #61 to #65, #67 to #70 and #72.
Activity
fix(tables): ensure_tables() compares key types, and tables created m…