Allow synchronous Metadata mutations via Metadata storage request option

Description

Recent UI bugs related to metadata not populating when updated are due to asynchronous behavior of mutations to Elasticsearch when modifying CDAP Metadata (either via delay in storage or delayed failure caused by late OCC validation). To alleviate this, plan is to

  1. Add MutationOptions parameter (currently with single sync/async field) to MetadataStorage interface/classes.

  2. Use the option to determine whether Elastic's refresh policy should be IMMEDIATE or WAIT_UNTIL.

  3. Set option as sync in MetadataStorage calls from the HTTP Handlers.

Release Notes

None

Activity

Show:

Bobby Meelu May 6, 2019 at 6:03 PM

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Fix versions

Priority

Created April 26, 2019 at 12:25 AM
Updated May 23, 2019 at 2:28 AM
Resolved May 6, 2019 at 6:03 PM