Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yjxsy1996 opened this issue Sep 26, 2024 · 1 comment
Open
Assignees
Labels
bug Bug report

Comments

@yjxsy1996
Copy link

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);
}

@yjxsy1996 yjxsy1996 added the bug Bug report label Sep 26, 2024
@jjoyce0510
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

3 participants