[NO ISSUE][REP] Do not sync on resource repository during replication
authorMurtadha Hubail <mhubail@apache.org>
Fri, 25 Mar 2022 13:40:28 +0000 (16:40 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Fri, 25 Mar 2022 15:40:40 +0000 (15:40 +0000)
commitd08f2ecb7b19b9a063e023c63ad3e62f65a6e1a1
treebd2eb5d09a4ff351cd61a034d8687402eae0ae0c
parent16acb99937eb2b6a0d639615109aac79e0ef8301
[NO ISSUE][REP] Do not sync on resource repository during replication

- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- To avoid blocking other threads while waiting for network operations,
  do not synchronize on resource repository during resource file
  replication/deletion.

Change-Id: I11e0f4b3f7a4db3eb55a2e00e9564e193950d84f
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/15883
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/resource/PersistentLocalResourceRepository.java