Skip to content

Commit 1401075

Browse files
committed
Tests: Speed up backward-compatibility tests for 1.1.0
1.1.0 is affected by #5817 which prevents merges from keeping up with the indexing rate. As a consequence it generates lots of segments and makes bw compat tests slow. So I added a special case for this version to index fewer documents.
1 parent 168238d commit 1401075

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

dev-tools/create-bwc-index.py

+5
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ def generate_index(client, version):
239239
assert health['timed_out'] == False, 'cluster health timed out %s' % health
240240

241241
num_docs = random.randint(2000, 3000)
242+
if version == "1.1.0":
243+
# 1.1.0 is buggy and creates lots and lots of segments, so we create a
244+
# lighter index for it to keep bw tests reasonable
245+
# see https://github.com/elastic/elasticsearch/issues/5817
246+
num_docs = num_docs / 10
242247
index_documents(client, 'test', 'doc', num_docs)
243248
logging.info('Running basic asserts on the data added')
244249
run_basic_asserts(client, 'test', 'doc', num_docs)
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)