Skip to content

Conversation

@zhangshenghang
Copy link
Member

Add PRIMARY_KEY_COLUMNS.remove() in finally block to properly clean up ThreadLocal and prevent memory leak when thread pool reuses threads.

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

…ouseCatalogUtil

Add PRIMARY_KEY_COLUMNS.remove() in finally block to properly clean up
ThreadLocal and prevent memory leak when thread pool reuses threads.
Copy link
Contributor

@LiJie20190102 LiJie20190102 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return super.getCreateTableSql(
template, database, table, tableSchema, comment, optionsKey);
} finally {
pkColumns.clear();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be deleted? There are also 49 lines of clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants