使用WSO2AM 2.1进行分析(我相信版本2.1)我们在aalytics的服务器日志中有以下exceptino:
错误:“os”列中的空值违反非空约束
Caused by: java.sql.BatchUpdateException: Batch entry 4 INSERT INTO API_REQ_USER_BROW_SUMMARY (api, version, apiPublisher, tenantDomain, total_request_count, year, month, day, requestTime, os, browser) VALUES ('agenda.city', '0.0.1', 'admin', 'carbon.super', 153, 2017, 8, 15, 1502794641000, NULL, NULL) ON CONFLICT (api,version,apiPublisher,year,month,day,os,browser,tenantDomain) DO UPDATE SET total_request_count=EXCLUDED.total_request_count, requestTime=EXCLUDED.requestTime was aborted: ERROR: null value in column "os" violates not-null constraint
Detail: Failing row contains (agenda.city, 0.0.1, admin, carbon.super, 153, 2017, 8, 15, 1502794641000, null, null). Call getNextException to see other errors in the batch.
at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:145)
at
完全例外:https://pastebin.com/bqRJZniN
作为注释 - 我没有看到有 os 或浏览器的问题,因为并非所有客户端(mainy后端API客户端)可能/将提供其他信息< / p>
编辑(18.8.2018):
我看到每个环境都没有发生这种异常,所以差别必须在其他地方(从2.0.0升级后重用DB?),似乎有些因素我不知道
我也看到te long总是提到“批量输入38 ..”,也许我可以清理开始的条目。我怎么做?