[NO ISSUE][STO] Ignore resource doesn't exist on dataset drop
authorMurtadha Hubail <mhubail@apache.org>
Wed, 26 May 2021 22:38:51 +0000 (01:38 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Thu, 27 May 2021 11:03:23 +0000 (11:03 +0000)
commit276b65ccf583b0318b94eaf777964c06c22678ed
tree23c604419e91151792902d3a98cce9ceda7db546
parent34351729058b19a530b9b4aa193433141840c352
[NO ISSUE][STO] Ignore resource doesn't exist on dataset drop

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

Details:

- When attempting to drop a dataset, do not fail the operation
  due to not finding the index on an NC.
- Ignore resource doesn't exist error code when attempting to
  drop a dataset.
- Always invalidate the resource on a delete attempt from the
  PersistentLocalResourceRepository cache.
- Start a new metadata transaction before attempting to execute
  the drop dataset compensating operations.

Change-Id: I591b009f0ffdf348bcfe989424f47a20fff44a1b
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/11644
Reviewed-by: Michael Blow <mblow@apache.org>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/resource/PersistentLocalResourceRepository.java
hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexDropOperatorNodePushable.java