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
gRPC/Server Returns incorrect 'head' in a batch of messages #188
Comments
I did some more testing to check - and if I request the messages individually, the header is correct, it's only when it returns a batch. Not sure if the bug is in the backend, or in the gRPC interface - the mysql adapter seems to retrieve and StructScan the rows ok, but the 'head' field is getting "cached" somewhere |
I'm looking into it. |
I cannot reproduce:
Message 9 has a header, message 10 does not. |
I'll test from the python gPRC client on my data and see - maybe it's the Objective-C gRPC interface causing the issue - As I said above - the backend looks right, so it's in the transit somewhere |
It's been a while. I assume it's either been resolved or no longer relevant. |
Subject of the issue
When retrieving a set of messages via a {sub}, it returns the wrong 'head' for all but the first message
Is this a bug report of a feature request?
Your environment
Server-side
0.15.2-rc3
Server 0.15 on Centos with MySQL
Client-side
My prototype IOS App.
I added a header for a timestamp (x--ts), and the header wasn't correctly returned - the batch of messages all had the header from the first message even though the database has stored all the unique headers:
Sending Sub message <ClientMsg 0x600001780370>: {
sub {
id: "12348"
topic: "usr_3K-sfX17UY"
get_query {
what: "data"
data {
}
}
}
}
Ctrl Message - <ServerCtrl 0x600000b90620>: {
id: "12348"
topic: "usr_3K-sfX17UY"
code: 200
text: "ok"
params {
key: "acs"
value: "{"want":"JRWPA","given":"JRWPA","mode":"JRWPA"}"
}
}
Data Message - <ServerData 0x600000e98380>: {
topic: "usr_3K-sfX17UY"
from_user_id: "usr_tVxJkstDpc"
seq_id: 1
head {
key: "x--ts"
value: "20181120113454"
}
content: "redacted"
}
Data Message - <ServerData 0x600000e98380>: {
topic: "usr_3K-sfX17UY"
from_user_id: "usr_tVxJkstDpc"
seq_id: 2
head {
key: "x--ts"
value: "20181120113454"
}
content: "redacted"
}
Data Message - <ServerData 0x600000e9c280>: {
topic: "usr_3K-sfX17UY"
from_user_id: "usr_3K-sfX17UY"
seq_id: 3
head {
key: "x--ts"
value: "20181120113454"
}
content: "redacted"
}
Data Message - <ServerData 0x600000e98380>: {
topic: "usr_3K-sfX17UY"
from_user_id: "usr_tVxJkstDpc"
seq_id: 4
head {
key: "x--ts"
value: "20181120113454"
}
content: "redacted"
}
Data Message - <ServerData 0x600000e98380>: {
topic: "usr_3K-sfX17UY"
from_user_id: "usr_3K-sfX17UY"
seq_id: 5
head {
key: "x--ts"
value: "20181120113454"
}
content: "redacted"
}
Data Message - <ServerData 0x600000e9f780>: {
topic: "usr_3K-sfX17UY"
from_user_id: "usr_3K-sfX17UY"
seq_id: 6
head {
key: "x--ts"
value: "20181120113454"
}
content: "redacted"
}
Ctrl Message - <ServerCtrl 0x600000b904d0>: {
id: "12348"
topic: "usr_3K-sfX17UY"
code: 200
text: "ok"
params {
key: "count"
value: "6"
}
params {
key: "what"
value: ""data""
}
}
The text was updated successfully, but these errors were encountered: