-
Notifications
You must be signed in to change notification settings - Fork 20
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
With redis and cloud.google.com/go/datastore in v1.4.0 or later, put fail. #88
Comments
Log with datastore V1.4.0 (Put100 Fail)
Log with datastore V1.3.0 (Put100 OK)
|
The trouble is that even if the data put fails, there is no programmatic error. Using rediscache.WithLogger, I found that datastore V1.4.0 had a gob error in the uninitialized time.Time member. |
@ktis sorry for late response. I checked v1.4.0 release note. minimal reproduction code
I found interesting article. I recommend you to use below code on start-up.
|
Thank you for answering the cause and how to fix it. Fix my code that way. |
When using redis and cloud.google.com/go/datastore which is after V1.4.0, if the time.Time type member of the struct is uninitialized, the struct cannot be put to datastore.
Without redis, put work well.
Using cloud.google.com/go/datastore V1.3.0, put work well.
(Few days ago I updated go.mod, then my unittest failed. datastrore V1.3.0 is OK, V1.4.0 or later is fail.)
Below is my Test code.
The text was updated successfully, but these errors were encountered: