Skip to content

Delete objects from ES before loading from object database#2623

Merged
abitmore merged 7 commits intodevelopfrom
pr-2464-es-obj-del
Aug 8, 2022
Merged

Delete objects from ES before loading from object database#2623
abitmore merged 7 commits intodevelopfrom
pr-2464-es-obj-del

Conversation

@abitmore
Copy link
Copy Markdown
Member

@abitmore abitmore commented Aug 8, 2022

For #2464 (comment), follow-up of #2570.

  • When syncing from scratch or re-syncing, for the object types that are enabled to be stored in ES, always delete all objects from ES first on node startup.
  • Otherwise, if the es-objects-sync-db-on-startup startup option is true, for the object types that are enabled to be stored in ES and both no-delete and store-updates options are false, delete all objects from ES before loading from the object database.

@abitmore abitmore added this to the 6.1.0 - Feature Release milestone Aug 8, 2022
@abitmore abitmore linked an issue Aug 8, 2022 that may be closed by this pull request
17 tasks
@abitmore abitmore marked this pull request as ready for review August 8, 2022 11:24
@abitmore abitmore force-pushed the pr-2464-es-obj-del branch from 9f73a47 to d0ead78 Compare August 8, 2022 13:37
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

94.7% 94.7% Coverage
0.0% 0.0% Duplication

@abitmore abitmore merged commit 8e98c4c into develop Aug 8, 2022
@abitmore abitmore deleted the pr-2464-es-obj-del branch August 8, 2022 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ES_objects plugin does not delete data from ES

1 participant