从3.0.3升级到3.0.8后OPEN API报错

Viewed 22

调用/api/meta/namespaces/<ns>/databases/<db>/tables/<tbl>/schema 报错,提示IllegalStateException错误

报错代码位置:https://github.com/apache/doris/blob/96abadcc8fd3887847b45ee3858e5e8e62907af8/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/MetaInfoAction.java#L289

对应接口文档:https://doris.apache.org/zh-CN/docs/3.0/admin-manual/open-api/fe-http/meta-info-action-V2

1 Answers

自己修复解决了,拿MetaInfoActionV2重写了MetaInfoAction。

为什么一定要修复这个接口?因为袋鼠云要连接doris,就需要通过这个openapi接口获取相关schema数据。

为什么不用jdbc?因为袋鼠云使用jdbc插入数据的方式性能太差了。