带有 WSO2DAS 的 WSO2AM - API_DESTINATION_SUMMARY 的 null apiPublisher
WSO2AM with WSO2DAS - null apiPublisher for API_DESTINATION_SUMMARY
在 PGSQL (9.5) 数据库(具有通用 WSO2AM_STATS_DB 数据库)上连接 wso2am-2.0.0 和 wso2am-analytics-2.0.0,我们收到以下异常:
TID: [-1] [] ERROR {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} - Error in executing task: Error while saving dat
a to the table API_DESTINATION_SUMMARY : Job aborted due to stage failure: Task 0 in stage 54296.0 failed 1 times, most recent failure: Lost task 0.0
in stage 54296.0 (TID 50425, localhost): java.sql.BatchUpdateException: Batch entry 0 INSERT INTO API_DESTINATION_SUMMARY (api, version, apiPublisher,
context, destination, total_request_count, hostName, year, month, day, time) VALUES ('test01', 'v1.0.0', NULL, '/test/v1.0.0', 'http://demo6009762.mo
ckable.io', 1, 'wso2apimgr3', 2017, 1, 26, '2017-01-26 15:59') ON CONFLICT (api,version,apiPublisher,context,destination,hostName,year,month,day) DO U
PDATE SET total_request_count=EXCLUDED.total_request_count, time=EXCLUDED.time was aborted: ERROR: null value in column "apipublisher" violates not-nu
ll constraint
完全例外是 here。
根据日志,直接原因是 apipublisher 字段是 null,这是不应该发生的。
所以现在我有几个问题:
我该如何防止这种情况发生?如何配置 apipublisher 值?。以及如何删除无效数据
感谢您的任何提示
据报道 issue。您可以应用 jira 票证中提到的修复。
在 PGSQL (9.5) 数据库(具有通用 WSO2AM_STATS_DB 数据库)上连接 wso2am-2.0.0 和 wso2am-analytics-2.0.0,我们收到以下异常:
TID: [-1] [] ERROR {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} - Error in executing task: Error while saving dat
a to the table API_DESTINATION_SUMMARY : Job aborted due to stage failure: Task 0 in stage 54296.0 failed 1 times, most recent failure: Lost task 0.0
in stage 54296.0 (TID 50425, localhost): java.sql.BatchUpdateException: Batch entry 0 INSERT INTO API_DESTINATION_SUMMARY (api, version, apiPublisher,
context, destination, total_request_count, hostName, year, month, day, time) VALUES ('test01', 'v1.0.0', NULL, '/test/v1.0.0', 'http://demo6009762.mo
ckable.io', 1, 'wso2apimgr3', 2017, 1, 26, '2017-01-26 15:59') ON CONFLICT (api,version,apiPublisher,context,destination,hostName,year,month,day) DO U
PDATE SET total_request_count=EXCLUDED.total_request_count, time=EXCLUDED.time was aborted: ERROR: null value in column "apipublisher" violates not-nu
ll constraint
完全例外是 here。
根据日志,直接原因是 apipublisher 字段是 null,这是不应该发生的。
所以现在我有几个问题:
我该如何防止这种情况发生?如何配置 apipublisher 值?。以及如何删除无效数据
感谢您的任何提示
据报道 issue。您可以应用 jira 票证中提到的修复。