HIVE-29670: Avoid overwriting read-only DB_NOTIFICATION_EVENT_ID_KEY_NAME in DbNotificationListener when processing batched partition events#6548
Conversation
…NAME in DbNotificationListener when processing batched partition events
|
CC @dengzhhu653 , can you please help with the feedback here! Related to HIVE-27746 On debugging, I found the same event object is being overridden in while loop in
|
|
dengzhhu653
left a comment
There was a problem hiding this comment.
+1 looks good to me. Thanks for the PR!
The DB_NOTIFICATION_EVENT_ID_KEY_NAME looks no sense to me, even I went through the HIVE-16164.
|
Thanks for the review @dengzhhu653 . More context, this was reported by the user, where they were performing INSERT INTO SELECT * and dynamically created more than 1000 partitions (more than default value of |





What changes were proposed in this pull request?
Check JIRA HIVE-29670 for stacktrace.
Why are the changes needed?
Alter partitions fails/warns to update stats for more than 1 batch (metastore.jdbc.max.batch.size) of partitions. local-setup-hs2.log
Does this PR introduce any user-facing change?
No
How was this patch tested?
Using q file and local hive setup testing