zookeeper: parse server responses#7574
Conversation
This adds support for parsing server respones and watch events. One or more follow-up PRs will add support for latency measurements and access log. Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
|
Note: docs & tests still missing, will follow-up later today/tomorrow. |
|
@mattklein123 got this twice in a row now: |
|
/retest |
|
🔨 rebuilding |
|
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
I'll push tests today/tomorrow. |
This should cover most of it, I still need to test some corner cases. Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
|
hmm, unrelated failure: |
|
/retest |
|
🔨 rebuilding |
|
another timeout for the same unrelated integration test: cc: @alyssawilk since maybe this is related to e61681d ? |
|
/retest |
|
🔨 rebuilding |
|
Yeah it does time out in the test case added by e61681d: |
This is a follow-up to e61681d. While working on envoyproxy#7574, I am getting consistent timeouts for this test. I think it happens because the code on the main thread runs slower than the code on the reader thread. My fix is to properly acquire and release the lock on each step, to ensure they are properly interlaced. That is: 1) read from reader 2) write from writer 3) read new value from reader 4) read new value from writer To repro the timeout, I added a sleep before step 2. After this change, I can't repro anymore. Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
|
Possible fix for timeouts: #7746. |
While working on #7574, I am getting consistent timeouts for this test. To repro the timeout, I added a sleep before step 2. After this change, I can't repro anymore. Risk: n/a (test only)
snowp
left a comment
There was a problem hiding this comment.
This looks pretty good, just a few comments
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
|
/retest |
|
🔨 rebuilding |
snowp
left a comment
There was a problem hiding this comment.
One minor comment otherwise LGTM
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
This adds support for parsing server responses and watch events. One
or more follow-up PRs will add support for latency measurements and
access log.
Signed-off-by: Raul Gutierrez Segales rgs@pinterest.com