Modify the upgrade script to forbid the bloom filter during upgrading
This commit is contained in:
@ -30,6 +30,12 @@ def do_special_upgrade(conn, cur, timeout, user, passwd):
|
|||||||
actions.set_parameter(cur, 'enable_major_freeze', 'False', timeout)
|
actions.set_parameter(cur, 'enable_major_freeze', 'False', timeout)
|
||||||
actions.set_tenant_parameter(cur, '_enable_adaptive_compaction', 'False', timeout)
|
actions.set_tenant_parameter(cur, '_enable_adaptive_compaction', 'False', timeout)
|
||||||
actions.do_suspend_merge(cur, 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 ========####******========####
|
####========******####======== actions begin ========####******========####
|
||||||
return
|
return
|
||||||
####========******####========= actions end =========####******========####
|
####========******####========= actions end =========####******========####
|
||||||
|
|||||||
@ -1244,6 +1244,12 @@
|
|||||||
# actions.set_parameter(cur, 'enable_major_freeze', 'False', timeout)
|
# actions.set_parameter(cur, 'enable_major_freeze', 'False', timeout)
|
||||||
# actions.set_tenant_parameter(cur, '_enable_adaptive_compaction', 'False', timeout)
|
# actions.set_tenant_parameter(cur, '_enable_adaptive_compaction', 'False', timeout)
|
||||||
# actions.do_suspend_merge(cur, 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 ========####******========####
|
#####========******####======== actions begin ========####******========####
|
||||||
# return
|
# return
|
||||||
#####========******####========= actions end =========####******========####
|
#####========******####========= actions end =========####******========####
|
||||||
|
|||||||
@ -1244,6 +1244,12 @@
|
|||||||
# actions.set_parameter(cur, 'enable_major_freeze', 'False', timeout)
|
# actions.set_parameter(cur, 'enable_major_freeze', 'False', timeout)
|
||||||
# actions.set_tenant_parameter(cur, '_enable_adaptive_compaction', 'False', timeout)
|
# actions.set_tenant_parameter(cur, '_enable_adaptive_compaction', 'False', timeout)
|
||||||
# actions.do_suspend_merge(cur, 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 ========####******========####
|
#####========******####======== actions begin ========####******========####
|
||||||
# return
|
# return
|
||||||
#####========******####========= actions end =========####******========####
|
#####========******####========= actions end =========####******========####
|
||||||
|
|||||||
Reference in New Issue
Block a user