Skip to content

Commit e52a67e

Browse files
committed
fixes
1 parent a6b0842 commit e52a67e

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

ydb/tests/olap/restarts/test_nodes_restart.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ def setup_class(cls):
2727
nodes=nodes_count,
2828
use_in_memory_pdisks=False,
2929
additional_log_configs={'CMS': LogLevels.DEBUG},
30-
)
30+
extra_feature_flags=[
31+
'enable_column_store'
32+
]
33+
)
3134
cls.cluster = KiKiMR(configurator=configurator)
3235
cls.cluster.start()
3336
node = cls.cluster.nodes[1]
@@ -65,16 +68,18 @@ def check_insert(self, duration: int):
6568
assert current_count != prev_count
6669

6770
def create_table(self, thread_id: int):
68-
deadline: datetime = datetime.datetime.now() + datetime.timedelta(minutes=3)
71+
deadline: datetime = datetime.datetime.now() + datetime.timedelta(seconds=10)
72+
# deadline: datetime = datetime.datetime.now() + datetime.timedelta(minutes=3)
6973
while datetime.datetime.now() < deadline:
70-
tableName = f"table_{thread_id}_{datetime.timestamp()}"
74+
tableName = f"table_{thread_id}_{datetime.datetime.now().timestamp()}"
7175
self.ydb_client.query(f"""
76+
--!syntax_v1
7277
CREATE TABLE `{tableName}` (
7378
`Key` Uint64 NOT NULL,
7479
`Value1` String,
7580
PRIMARY KEY (`Key`)
7681
)
77-
TABLESTORE `tableStoreName`;
82+
TABLESTORE `TableStore`;
7883
""")
7984
self.ydb_client.query(f"""
8085
ALTER TABLE `{tableName}`
@@ -90,7 +95,8 @@ def test(self):
9095
PRIMARY KEY (Key)
9196
)
9297
WITH (
93-
STORE = COLUMN
98+
STORE = COLUMN,
99+
AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 10
94100
);
95101
""")
96102

@@ -104,13 +110,15 @@ def test(self):
104110

105111
time.sleep(10)
106112

107-
for node in self.cluster.nodes:
108-
node.stop()
109-
# киляются с killom.
110-
# тут уточнить, как это делать.
111113

112-
for node in self.cluster.nodes:
113-
node.start()
114+
self.cluster.restart_nodes()
115+
# for node in self.cluster.nodes.values():
116+
# node.stop()
117+
# # киляются с killom.
118+
# # тут уточнить, как это делать.
119+
120+
# for node in self.cluster.nodes.values():
121+
# node.start()
114122

115123
for thread in threads:
116124
thread.join()

0 commit comments

Comments
 (0)