Riza Suminto created IMPALA-14400:
-------------------------------------

             Summary: Deadlock in CatalogServiceCatalog due to read lock 
upgrade to a write lock
                 Key: IMPALA-14400
                 URL: https://issues.apache.org/jira/browse/IMPALA-14400
             Project: IMPALA
          Issue Type: Bug
          Components: Catalog
    Affects Versions: Impala 5.0.0
            Reporter: Riza Suminto
            Assignee: Riza Suminto
         Attachments: jstack_dump.txt

test_metadata_after_failover_with_delayed_reset from a precommit jenkins job 
caught a case where CatalogD hang with deadlock during startup.

This is easily hit when TRIGGER_RESET_METADATA_DELAY is increased to 3s. The 
reason is, EventProcessor attempt to obtain versionLock_.writeLock() in 
CatalogServiceCatalog.getDb() after obtaining versionLock_.readLock() in 
CatalogServiceCatalog.getDbProperty() (unsafe lock upgrade from read to write).

[^jstack_dump.txt] shows the jstack when the deadlock occurs.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to