mysterious-lamp-91034
07/08/2022, 12:34 AMcurl "<http://localhost:8080/entities?action=delete>" -X POST --data '{"urn": "urn:li:glossaryTerm:AccountBalance"}'
It deleted the data in mysql but not in UI. I realized it may still exist in elasticsearch. Then I deleted all data in elastic search
curl -s -X DELETE <https://vpc-schema-registry-XXXXXX.us-east-1.es.amazonaws.com/*>
Then restart the server.
Looks like the server is rebuilding the index and backfill data.
But the speed is very slow.
Is there a quick way to rebuild the elastic search?
Or
What is the right way to delete an entity in both mysql and elastic search?
Thanks!mysterious-lamp-91034
07/08/2022, 2:45 PMmammoth-bear-12532
mysterious-lamp-91034
07/08/2022, 3:25 PMmysterious-lamp-91034
07/08/2022, 3:26 PMmammoth-bear-12532
mammoth-bear-12532
incalculable-ocean-74010
07/08/2022, 3:48 PMmysterious-lamp-91034
07/08/2022, 3:48 PMmysterious-lamp-91034
07/08/2022, 3:49 PMmysterious-lamp-91034
07/08/2022, 4:10 PMmysterious-lamp-91034
07/08/2022, 4:10 PMincalculable-ocean-74010
07/08/2022, 4:16 PMmysterious-lamp-91034
07/08/2022, 4:18 PMmysterious-lamp-91034
07/08/2022, 5:00 PMincalculable-ocean-74010
07/08/2022, 5:02 PMmysterious-lamp-91034
07/08/2022, 5:03 PMincalculable-ocean-74010
07/08/2022, 5:04 PMCACHE_TTL_SECONDS environment variable in GMS to 1mysterious-lamp-91034
07/08/2022, 5:16 PMmysterious-lamp-91034
07/08/2022, 5:33 PMmysterious-lamp-91034
07/08/2022, 5:41 PMmysterious-lamp-91034
07/08/2022, 6:06 PMincalculable-ocean-74010
07/08/2022, 8:39 PMmysterious-lamp-91034
07/08/2022, 8:40 PMmysterious-lamp-91034
07/08/2022, 8:42 PM20:41:38.685 [pool-10-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - POST /entities?action=ingest - ingest - 200 - 38ms
20:41:38.690 [qtp544724190-38] INFO c.l.m.r.entity.AspectResource:125 - INGEST PROPOSAL proposal: {aspectName=subTypes, systemMetadata={lastObserved=1657312897838, runId=pinterest-hive-2022_07_08-20_41_34}, entityUrn=urn:li:dataset:(urn:li:dataPlatform:pinterest-hive,data.users_d,PROD), entityType=dataset, aspect={contentType=application/json, value=ByteString(length=24,bytes=7b227479...65225d7d)}, changeType=UPSERT}
20:41:38.750 [pool-10-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - POST /aspects?action=ingestProposal - ingestProposal - 200 - 60ms
20:41:38.755 [qtp544724190-49] INFO c.l.m.r.entity.AspectResource:125 - INGEST PROPOSAL proposal: {aspectName=container, systemMetadata={lastObserved=1657312897908, runId=pinterest-hive-2022_07_08-20_41_34}, entityUrn=urn:li:dataset:(urn:li:dataPlatform:pinterest-hive,data.core_daily_sessionized_feedview_action_stats,PROD), entityType=dataset, aspect={contentType=application/json, value=ByteString(length=66,bytes=7b22636f...6137227d)}, changeType=UPSERT}
20:41:38.814 [pool-10-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - POST /aspects?action=ingestProposal - ingestProposal - 200 - 59ms
20:41:38.822 [qtp544724190-38] INFO c.l.metadata.entity.EntityService:742 - INGEST urn urn:li:dataset:(urn:li:dataPlatform:pinterest-hive,data.core_daily_sessionized_feedview_action_stats,PROD) with system metadata {lastObserved=1657312897908, runId=pinterest-hive-2022_07_08-20_41_34}
20:41:38.859 [pool-10-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - POST /entities?action=ingest - ingest - 200 - 38ms
20:41:38.863 [qtp544724190-49] INFO c.l.m.r.entity.AspectResource:125 - INGEST PROPOSAL proposal: {aspectName=subTypes, systemMetadata={lastObserved=1657312897909, runId=pinterest-hive-2022_07_08-20_41_34}, entityUrn=urn:li:dataset:(urn:li:dataPlatform:pinterest-hive,data.core_daily_sessionized_feedview_action_stats,PROD), entityType=dataset, aspect={contentType=application/json, value=ByteString(length=24,bytes=7b227479...65225d7d)}, changeType=UPSERT}
20:41:38.922 [pool-10-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - POST /aspects?action=ingestProposal - ingestProposal - 200 - 59ms
This is the server log after I run ingestion. So I am sure it is ingestedmysterious-lamp-91034
07/08/2022, 8:47 PM20:45:09.372 [qtp544724190-59] INFO c.l.metadata.entity.EntityService:742 - INGEST urn urn:li:dataset:(urn:li:dataPlatform:pinterest-hive,bi.core_daily_sessions_stats,PROD) with system metadata {lastObserved=1657313109111, runId=pinterest-hive-2022_07_08-20_45_06}
20:45:09.411 [pool-10-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - POST /entities?action=ingest - ingest - 200 - 39ms
20:45:09.414 [qtp544724190-31] INFO c.l.m.r.entity.AspectResource:125 - INGEST PROPOSAL proposal: {aspectName=subTypes, systemMetadata={lastObserved=1657313109112, runId=pinterest-hive-2022_07_08-20_45_06}, entityUrn=urn:li:dataset:(urn:li:dataPlatform:pinterest-hive,bi.core_daily_sessions_stats,PROD), entityType=dataset, aspect={contentType=application/json, value=ByteString(length=24,bytes=7b227479...65225d7d)}, changeType=UPSERT}
20:45:09.477 [pool-10-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - POST /aspects?action=ingestProposal - ingestProposal - 200 - 63ms
Butmysterious-lamp-91034
07/08/2022, 8:56 PMsubType or container,
Curious why it does not ingest schemaMetadata? Is it because it found no change then skip the ingestion?mysterious-lamp-91034
07/08/2022, 9:00 PMincalculable-ocean-74010
07/08/2022, 9:33 PMincalculable-ocean-74010
07/08/2022, 9:34 PMincalculable-ocean-74010
07/08/2022, 9:34 PMmysterious-lamp-91034
07/08/2022, 9:35 PMmysterious-lamp-91034
07/08/2022, 9:43 PMincalculable-ocean-74010
07/08/2022, 10:48 PMmysterious-lamp-91034
07/08/2022, 11:04 PMmysterious-lamp-91034
07/08/2022, 11:06 PMmysterious-lamp-91034
07/08/2022, 11:09 PMmysterious-lamp-91034
07/08/2022, 11:10 PMmysterious-lamp-91034
07/08/2022, 11:10 PMincalculable-ocean-74010
07/08/2022, 11:16 PMincalculable-ocean-74010
07/08/2022, 11:16 PMmysterious-lamp-91034
07/08/2022, 11:17 PMmysterious-lamp-91034
07/08/2022, 11:36 PMmammoth-bear-12532
mysterious-lamp-91034
07/09/2022, 1:10 AMmysterious-lamp-91034
07/09/2022, 1:10 AMmysterious-lamp-91034
07/09/2022, 1:10 AMmammoth-bear-12532