[teiid-issues] [JBoss JIRA] (TEIIDSB-121) cpu utilization on 100% when generate openapi doc by metadata

Steven Hawkins (Jira) issues at jboss.org
Thu Oct 10 15:04:00 EDT 2019


     [ https://issues.jboss.org/browse/TEIIDSB-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIIDSB-121.
------------------------------------
    Resolution: Cannot Reproduce


I'm not able to reproduce this based upon what's here.  If there's a way to provide a sanitized edm file that would be best.   Locally I generated a schema from 100 views defined as:

create view v0 (col1 integer primary key , col2 integer, .. col100 integer, foreign key (col1) references v1(col1), .. foreign key (col10) references v10(col1)) as SELECT 1, ...;

So that's 100 views each with 100 columns and 10 relationships and I can't get to what you are describing.  From what I can see there is simple linear scaling in the generation time from there - scaling out to 200 views roughly doubles the time.

> cpu utilization on 100% when generate openapi doc by metadata
> -------------------------------------------------------------
>
>                 Key: TEIIDSB-121
>                 URL: https://issues.jboss.org/browse/TEIIDSB-121
>             Project: Teiid Spring Boot
>          Issue Type: Bug
>          Components: datasource, OData
>    Affects Versions: 1.2.0
>            Reporter: Renat Eskenin
>            Assignee: Steven Hawkins
>            Priority: Major
>
> When i get request as 
> http://localhost:8080/odata/swagger.json or http://localhost:8080/odata/datasource/Account/swagger.json or http://localhost:8080/odata/datasource/swagger.json
> cpu utilization 100% and i do not get any response.
> We have 2 bad approach:
> 1. In org.teiid.olingo.web.OpenApiHandler:151 teiid create tmp file in filesystem.
> Its bad because in Docker k8s systems applications can't create any files in FS.
> 2. In org.apache.xalan.transformer.TransformerImpl:709 we get system freeze (CPU utilization 100% infinite)



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the teiid-issues mailing list