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

[Kafka adapter] Failed to serialize metadata records: cast is not valid #121

Open
tzonghao opened this issue May 14, 2019 · 6 comments
Open

Comments

@tzonghao
Copy link

(Version 2.6 or 2.7) When Kafka adapter output is enabled, the error is reported and no metadata is produced in Kafka topic:

[KAFKA] Failed to serialize current time-series metadata records: Specified cast is not valid.

@ritchiecarroll
Copy link
Member

I don't think we've tested the Kafka adapter in a while - my guess is that we have changed-up measurement metadata functionality since this adapter was written and there's a small bug here now.

@ritchiecarroll
Copy link
Member

FYI - I looked at the code where this error occurred and it's not obvious to me why this is failing. Perhaps it's related to the type of database you are using. What is your openPDC configuration database type??

@tzonghao
Copy link
Author

tzonghao commented May 15, 2019 via email

@ritchiecarroll
Copy link
Member

I can think of two things (1) CHAR in SQLite is not properly converting to string, or (2) DateTime is having cultural issues.

Is it possible to try another database to see if the error persists, such as, SQL Server Express?

Thanks,
Ritchie

@tzonghao
Copy link
Author

I can try PostgreSQL and maybe some other databases, sometime tomorrow.
Thanks for looking into this.

@tzonghao
Copy link
Author

I tried to use both PostgreSQL and MySQL, but openPDC failed to connect/setup with either, so there's no way to tell if they'd have the same issue. However, SQL Server Express 2017 works out of the box and does not have the same issue as with SQLite.

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

No branches or pull requests

2 participants