Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL String can not be NULL error in MySQL DB #1874

Open
Methma opened this issue Jul 20, 2020 · 0 comments
Open

SQL String can not be NULL error in MySQL DB #1874

Methma opened this issue Jul 20, 2020 · 0 comments

Comments

@Methma
Copy link

Methma commented Jul 20, 2020

Description:
The following error observed in MySQL DB intermittently during the insert/update records.
TID: [-1] [] [2020-06-17 14:17:28,446] ERROR {org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor} - Dropping event chunk EventChunk{first=StreamEvent{timestamp=1592403368794, beforeWindowData=[null, null, null], onAfterWindowData=null, outputData=[null, null, null, null], type=TIMER, next=null}}, error in processing org.wso2.carbon.analytics.apim.siddhi.stream.processor.MarkovChainMatrixTimeBatchStreamProcessor, Error in adding records to analytics event table: Error in adding records: SQL String can not be NULL {org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor} java.lang.IllegalStateException: Error in adding records to analytics event table: Error in adding records: SQL String can not be NULL

This is occurring due to the following configurations are missing for the MySQL database in the <DAS_HOME>/repository/conf/analytics/rdbms-config.xm file.

<recordInsertQuery>INSERT INTO {{TABLE_NAME}} (partition_key, timestamp, data, record_id) VALUES (?, ?, ?, ?)</recordInsertQuery> <recordUpdateQuery>UPDATE {{TABLE_NAME}} SET partition_key = ?, timestamp = ?, data = ? WHERE record_id = ?</recordUpdateQuery>

Suggested Labels:
das

Affected Product Version:
wso2das-3.1.0

OS, DB, other environment details and versions:
MySQL DB

Steps to reproduce:
This is an intermittent issue. The above fix has been verified by providing a preQA fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant