LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-654836968
AFAIK, hive client (metastore clien) is not thread-safe. I don't find any
documentation but I find a patch
LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-654796439
I think it's safe to use database level R/W locks here with thread-unsafe
hive-client. Use one object lock is over kill in `HiveExternalCatalog`. You
never know how
LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-650868622
This is an automated message from the Apache Git Service.
To respond to the message, please log on to
LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-650868622
> Hi, @LantaoJin . Since this PR aims to use multiple locks instead of a
global one, could you add some explanation briefly about how this PR is
deadlock-free? Thanks.
LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-654796439
I think it's safe to use database level R/W locks here with thread-unsafe
hive-client. Use one object lock is over kill in `HiveExternalCatalog`. You
never know how
LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-650868622
> Hi, @LantaoJin . Since this PR aims to use multiple locks instead of a
global one, could you add some explanation briefly about how this PR is
deadlock-free? Thanks.
LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-650868622
> Hi, @LantaoJin . Since this PR aims to use multiple locks instead of a
global one, could you add some explanation briefly about how this PR is
deadlock-free? Thanks.
LantaoJin edited a comment on pull request #28938:
URL: https://github.com/apache/spark/pull/28938#issuecomment-650868622
> Hi, @LantaoJin . Since this PR aims to use multiple locks instead of a
global one, could you add some explanation briefly about how this PR is
deadlock-free? Thanks.