Skip to content

Commit 45df84b

Browse files
smkniaziberthoug
authored andcommitted
[HOPS-1588] truncate leader election tables on upgrade
1 parent d5ee11b commit 45df84b

2 files changed

+7
-0
lines changed

schema/update-schema_2.8.2.10_to_3.2.0.0.sql

+4
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,7 @@ ALTER TABLE hdfs_retry_cache_entry DROP PRIMARY KEY;
8686
ALTER TABLE hdfs_retry_cache_entry ADD PRIMARY KEY (`client_id`,`call_id`,`epoch`) PARTITION BY KEY (`epoch`);
8787

8888
insert into hdfs_variables (id, value) select 39, 0x0000000000000000 where (select count(*) from hdfs_variables)>0;
89+
90+
TRUNCATE TABLE hdfs_le_descriptors;
91+
92+
TRUNCATE TABLE yarn_le_descriptors;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TRUNCATE TABLE hdfs_le_descriptors;
2+
3+
TRUNCATE TABLE yarn_le_descriptors;

0 commit comments

Comments
 (0)