datahub-project / datahub

The Metadata Platform for your Data Stack
https://datahubproject.io
Apache License 2.0
9.77k stars 2.88k forks source link

Notebook integration causes GMS to fail to open and interface to freeze #11478

Open yjxsy1996 opened 1 week ago

yjxsy1996 commented 1 week ago

I tried to integrate the current beta version of the notebook through MCP, but some interfaces on the GMS page did not respond. It feels like some task caused the lag

This is my test code snippet: @Test public void testNotebookAdd() { NotebookInfo notebookInfo = new NotebookInfo(); NotebookInfo.setDescription ("Test Workbook"); NotebookInfo.setTitle ("Test Workbook Notebook"); notebookInfo.setExternalUrl(new Url("www.baidu.com")); ChangeAuditStamps changeAuditStamps = new ChangeAuditStamps(); AuditStamp auditStamp = new AuditStamp(); auditStamp.setActor(UrnUtils.getUrn("urn:li:corpuser:datahub")); auditStamp.setTime(System.currentTimeMillis()); changeAuditStamps.setCreated(auditStamp); changeAuditStamps.setLastModified(auditStamp); changeAuditStamps.setDeleted(auditStamp); notebookInfo.setChangeAuditStamps(changeAuditStamps); MetadataWriteResponse response = restEmitterProvider.syncMetadata2DhPlatform("notebook", "urn:li:notebook:(verse-workbook,14)", notebookInfo); InstitutionalMemory institutionalMemory = new InstitutionalMemory(); InstitutionalMemoryMetadataArray institutionalMemoryMetadataArray = new InstitutionalMemoryMetadataArray(); InstitutionalMemoryMetadata institutionalMemoryMetadata = new InstitutionalMemoryMetadata(); institutionalMemoryMetadata.setUrl(new Url("www.baidu.com")); InstitutionalMemoryMetadata. setDescription ("Baidu Website"); institutionalMemoryMetadata.setCreateStamp(auditStamp); institutionalMemoryMetadataArray.add(institutionalMemoryMetadata); institutionalMemory.setElements(institutionalMemoryMetadataArray); MetadataWriteResponse response2 = restEmitterProvider.syncMetadata2DhPlatform("notebook", "urn:li:notebook:(verse-workbook,14)", institutionalMemory); }

jjoyce0510 commented 1 week ago

Do you mind providing the datahub-gms log trace related to the error you're encountering? It should provide some hint about what is wrong here... Also, can you provide a bit more detail about what is happening inside of "syncMetadata2DhPlatform" function call?

Cheers John