使用 WSO2AM 2.1 和分析(我也相信 2.1 版)我们在 aalytics 的服务器日志中有以下异常:
错误:“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
作为说明 - 我没有看到空操作系统或浏览器的问题,因为并非所有客户端(主要是后端 API 客户端)都可能/将提供附加信息
编辑(18.8.2018):
我看到这个异常不会在每个环境中发生,所以差异一定在其他地方(从 2.0.0 升级后重用数据库?),似乎有一些我不知道的因素
同样,我看到 te long 总是提到“Batch entry 38 ..”,也许我可以在开始时清理条目。我怎么做?
这已经修复 [1],并将在下一个版本中提供。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句