Modify the upgrade script to forbid the bloom filter during upgrading

This commit is contained in:
obdev
2023-07-06 09:42:25 +00:00
committed by ob-robot
parent 34c45b07dc
commit bf29361979
3 changed files with 18 additions and 0 deletions

View File

@ -1244,6 +1244,12 @@
# actions.set_parameter(cur, 'enable_major_freeze', 'False', timeout)
# actions.set_tenant_parameter(cur, '_enable_adaptive_compaction', 'False', timeout)
# actions.do_suspend_merge(cur, timeout)
# # When upgrading from a version prior to 4.2 to version 4.2, the bloom_filter should be disabled.
# # The param _bloom_filter_enabled is no longer in use as of version 4.2, there is no need to enable it again.
# if actions.get_version(current_version) < actions.get_version('4.2.0.0')\
# and actions.get_version(target_version) >= actions.get_version('4.2.0.0'):
# actions.set_tenant_parameter(cur, '_bloom_filter_enabled', 'False', timeout)
#
#####========******####======== actions begin ========####******========####
# return
#####========******####========= actions end =========####******========####