vastdb 1.3.0__py3-none-any.whl → 1.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vastdb/_internal.py +1 -1
- vastdb/vast_tests/test_scale.py +23 -0
- {vastdb-1.3.0.dist-info → vastdb-1.3.1.dist-info}/METADATA +1 -1
- {vastdb-1.3.0.dist-info → vastdb-1.3.1.dist-info}/RECORD +7 -7
- {vastdb-1.3.0.dist-info → vastdb-1.3.1.dist-info}/LICENSE +0 -0
- {vastdb-1.3.0.dist-info → vastdb-1.3.1.dist-info}/WHEEL +0 -0
- {vastdb-1.3.0.dist-info → vastdb-1.3.1.dist-info}/top_level.txt +0 -0
vastdb/_internal.py
CHANGED
|
@@ -866,7 +866,7 @@ class VastdbApi:
|
|
|
866
866
|
res = self._session.request(method=method, url=url, timeout=self.timeout, **kwargs)
|
|
867
867
|
except requests.exceptions.ConnectionError as err:
|
|
868
868
|
# low-level connection issue, it is safe to retry only read-only requests
|
|
869
|
-
may_retry = (method
|
|
869
|
+
may_retry = (method in {"HEAD", "GET"})
|
|
870
870
|
raise errors.ConnectionError(cause=err, may_retry=may_retry) from err
|
|
871
871
|
|
|
872
872
|
if not skip_status_check:
|
vastdb/vast_tests/test_scale.py
CHANGED
|
@@ -66,3 +66,26 @@ def test_table_stats(session, test_bucket_name, schema_name, table_name):
|
|
|
66
66
|
logger.info("inserted to table")
|
|
67
67
|
assert new_stat.size_in_bytes != initial_stat.size_in_bytes
|
|
68
68
|
assert new_stat.num_rows - NUM_TIMES_TO_INSERT == initial_stat.num_rows
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def test_ndu_while_querying(session, test_bucket_name, schema_name, table_name):
|
|
72
|
+
"""
|
|
73
|
+
Executing queries while a NDU takes place.
|
|
74
|
+
"""
|
|
75
|
+
# TODO: Before merging run mypy and print query result
|
|
76
|
+
|
|
77
|
+
config = QueryConfig(num_splits=1, num_sub_splits=1)
|
|
78
|
+
|
|
79
|
+
logger.info(f'{test_bucket_name=}, {schema_name=}, {table_name=}')
|
|
80
|
+
|
|
81
|
+
for query in range(300):
|
|
82
|
+
with session.transaction() as tx:
|
|
83
|
+
t = tx.bucket(test_bucket_name).schema(schema_name).table(table_name)
|
|
84
|
+
s = time.time()
|
|
85
|
+
if query == 0:
|
|
86
|
+
res = t.select(config=config).read_all()
|
|
87
|
+
logger.info(f'{res=}')
|
|
88
|
+
else:
|
|
89
|
+
assert res == t.select(config=config).read_all()
|
|
90
|
+
e = time.time()
|
|
91
|
+
logger.info(f'{query=} took {e - s}')
|
|
@@ -149,7 +149,7 @@ vast_flatbuf/tabular/S3File.py,sha256=KC9c2oS5-JXwTTriUVFdjOvRG0B54Cq9kviSDZY3NI
|
|
|
149
149
|
vast_flatbuf/tabular/VipRange.py,sha256=_BJd1RRZAcK76T9vlsHzXKYVsPVaz6WTEAqStMQCAUQ,2069
|
|
150
150
|
vast_flatbuf/tabular/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
151
151
|
vastdb/__init__.py,sha256=J1JjKiFkKC95BHowfh9kJfQFTjRce-QMsc6zF_FfxC0,432
|
|
152
|
-
vastdb/_internal.py,sha256=
|
|
152
|
+
vastdb/_internal.py,sha256=LmiiNmUqJFfNGUoe362sHwU8M3aKbN1VWYIvobrgeK8,92322
|
|
153
153
|
vastdb/bucket.py,sha256=5KuKhPjZOevznZqWHDVVocejvAy7dcwobPuV6BJCfPc,2544
|
|
154
154
|
vastdb/config.py,sha256=1tMYtzKXerGcIUjH4tIGEvZNWvO4fviCEdcNCnELJZo,2269
|
|
155
155
|
vastdb/conftest.py,sha256=X2kVveySPQYZlVBXUMoo7Oea5IsvmJzjdqq3fpH2kVw,3469
|
|
@@ -201,9 +201,9 @@ vastdb/tests/test_util.py,sha256=n7gvT5Wg6b6bxgqkFXkYqvFd_W1GlUdVfmPv66XYXyA,195
|
|
|
201
201
|
vastdb/tests/util.py,sha256=dpRJYbboDnlqL4qIdvScpp8--5fxRUBIcIYitrfcj9o,555
|
|
202
202
|
vastdb/vast_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
203
203
|
vastdb/vast_tests/test_ha.py,sha256=744P4G6VJ09RIkHhMQL4wlipCBJWQVMhyvUrSc4k1HQ,975
|
|
204
|
-
vastdb/vast_tests/test_scale.py,sha256=
|
|
205
|
-
vastdb-1.3.
|
|
206
|
-
vastdb-1.3.
|
|
207
|
-
vastdb-1.3.
|
|
208
|
-
vastdb-1.3.
|
|
209
|
-
vastdb-1.3.
|
|
204
|
+
vastdb/vast_tests/test_scale.py,sha256=yPF5sL2X7fiP_QooV3OnZAzsW38ANfkHFXq8B1_Uh-s,3515
|
|
205
|
+
vastdb-1.3.1.dist-info/LICENSE,sha256=obffan7LYrq7hLHNrY7vHcn2pKUTBUYXMKu-VOAvDxU,11333
|
|
206
|
+
vastdb-1.3.1.dist-info/METADATA,sha256=oyVkT5bnbEKiuHPfiYuQKtu0C1N7yfeQTSOnhRWpF8c,1340
|
|
207
|
+
vastdb-1.3.1.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
208
|
+
vastdb-1.3.1.dist-info/top_level.txt,sha256=Vsj2MKtlhPg0J4so64slQtnwjhgoPmJgcG-6YcVAwVc,20
|
|
209
|
+
vastdb-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|