-
Notifications
You must be signed in to change notification settings - Fork 463
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
Support custom types in broker #5761
Conversation
2184 tests run: 2101 passed, 0 failed, 83 skipped (full report)Flaky tests (4)Postgres 16
Postgres 15
Postgres 14Code coverage (full report)
The comment gets automatically updated with the latest test results
7c4662a at 2023-12-19T16:06:40.773Z :recycle: |
b9ae49c
to
80986e3
Compare
I'm currently refreshing my protobuf knowledge by reading docs https://protobuf.dev/programming-guides/proto3/ |
53cd0a8
to
b3d46a2
Compare
@arssher I've finished patches that I wanted, ready for review now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One unobvious gotcha here is that we have single sub channel for ttid for all message types, which means in theory one type can completely suppress others in dense stream. Moreover, I wanted to change DEFAULT_CHAN_SIZE to 1 or just make channel watch instead of broadcast as accumulating old messages pointless and broker eats a lot of memory in busy regions; with that change it would be even more important. Probably ok for now, but consider fixing it.
b3d46a2
to
7c4662a
Compare
Rebased over main, ready to merge. |
Update jsonwebtoken to 9 and sct to 0.7.1 (#6189) This increases the list of crates that base on `ring` 0.17. fixing build fixing build testing build testing build testing build testing build testing build reverting the build changes eliminate GCC warning for unchecked result of fread (#6167) GCCproduce warning that bread result is not checked. It doesn't affect program logic, but better live without warnings. Check read result. - [ ] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. - [ ] Do not forget to reformat commit message to not include the above checklist Handle role deletion when project has no databases. (#6170) There is still default 'postgres' database, that may contain objects owned by the role or some ACLs. We need to reassign objects in this database too. If customer deleted all databases and then tries to delete role, that has some non-standard ACLs, `apply_config` operation will stuck because of failing role deletion. fix metric `pageserver_initial_logical_size_start_calculation` (#6191) It wasn't being incremented. Fixup of commit 1c88824 Author: Christian Schwarz <[email protected]> Date: Fri Dec 1 12:52:59 2023 +0100 initial logical size calculation: add a bunch of metrics (#5995) Support custom types in broker (#5761) Old methods are unchanged for backwards compatibility. Added `SafekeeperDiscoveryRequest` and `SafekeeperDiscoveryResponse` types to serve as example, and also as a prerequisite for #5471 removed the if check from jobs ammended review comments fixing build
Update jsonwebtoken to 9 and sct to 0.7.1 (#6189) This increases the list of crates that base on `ring` 0.17. fixing build fixing build testing build testing build testing build testing build testing build reverting the build changes eliminate GCC warning for unchecked result of fread (#6167) GCCproduce warning that bread result is not checked. It doesn't affect program logic, but better live without warnings. Check read result. - [ ] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. - [ ] Do not forget to reformat commit message to not include the above checklist Handle role deletion when project has no databases. (#6170) There is still default 'postgres' database, that may contain objects owned by the role or some ACLs. We need to reassign objects in this database too. If customer deleted all databases and then tries to delete role, that has some non-standard ACLs, `apply_config` operation will stuck because of failing role deletion. fix metric `pageserver_initial_logical_size_start_calculation` (#6191) It wasn't being incremented. Fixup of commit 1c88824 Author: Christian Schwarz <[email protected]> Date: Fri Dec 1 12:52:59 2023 +0100 initial logical size calculation: add a bunch of metrics (#5995) Support custom types in broker (#5761) Old methods are unchanged for backwards compatibility. Added `SafekeeperDiscoveryRequest` and `SafekeeperDiscoveryResponse` types to serve as example, and also as a prerequisite for #5471 removed the if check from jobs ammended review comments fixing build
Update jsonwebtoken to 9 and sct to 0.7.1 (#6189) This increases the list of crates that base on `ring` 0.17. fixing build fixing build testing build testing build testing build testing build testing build reverting the build changes eliminate GCC warning for unchecked result of fread (#6167) GCCproduce warning that bread result is not checked. It doesn't affect program logic, but better live without warnings. Check read result. - [ ] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. - [ ] Do not forget to reformat commit message to not include the above checklist Handle role deletion when project has no databases. (#6170) There is still default 'postgres' database, that may contain objects owned by the role or some ACLs. We need to reassign objects in this database too. If customer deleted all databases and then tries to delete role, that has some non-standard ACLs, `apply_config` operation will stuck because of failing role deletion. fix metric `pageserver_initial_logical_size_start_calculation` (#6191) It wasn't being incremented. Fixup of commit 1c88824 Author: Christian Schwarz <[email protected]> Date: Fri Dec 1 12:52:59 2023 +0100 initial logical size calculation: add a bunch of metrics (#5995) Support custom types in broker (#5761) Old methods are unchanged for backwards compatibility. Added `SafekeeperDiscoveryRequest` and `SafekeeperDiscoveryResponse` types to serve as example, and also as a prerequisite for #5471 removed the if check from jobs ammended review comments fixing build
Update jsonwebtoken to 9 and sct to 0.7.1 (#6189) This increases the list of crates that base on `ring` 0.17. reverting the build changes eliminate GCC warning for unchecked result of fread (#6167) GCCproduce warning that bread result is not checked. It doesn't affect program logic, but better live without warnings. Check read result. - [ ] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. - [ ] Do not forget to reformat commit message to not include the above checklist Handle role deletion when project has no databases. (#6170) There is still default 'postgres' database, that may contain objects owned by the role or some ACLs. We need to reassign objects in this database too. If customer deleted all databases and then tries to delete role, that has some non-standard ACLs, `apply_config` operation will stuck because of failing role deletion. fix metric `pageserver_initial_logical_size_start_calculation` (#6191) It wasn't being incremented. Fixup of commit 1c88824 Author: Christian Schwarz <[email protected]> Date: Fri Dec 1 12:52:59 2023 +0100 initial logical size calculation: add a bunch of metrics (#5995) Support custom types in broker (#5761) Old methods are unchanged for backwards compatibility. Added `SafekeeperDiscoveryRequest` and `SafekeeperDiscoveryResponse` types to serve as example, and also as a prerequisite for #5471 removed the if check from jobs ammended review comments fixing build abstracted tag generation of build images in reuse workflow fixing buikd
Update jsonwebtoken to 9 and sct to 0.7.1 (#6189) This increases the list of crates that base on `ring` 0.17. reverting the build changes eliminate GCC warning for unchecked result of fread (#6167) GCCproduce warning that bread result is not checked. It doesn't affect program logic, but better live without warnings. Check read result. - [ ] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. - [ ] Do not forget to reformat commit message to not include the above checklist Handle role deletion when project has no databases. (#6170) There is still default 'postgres' database, that may contain objects owned by the role or some ACLs. We need to reassign objects in this database too. If customer deleted all databases and then tries to delete role, that has some non-standard ACLs, `apply_config` operation will stuck because of failing role deletion. fix metric `pageserver_initial_logical_size_start_calculation` (#6191) It wasn't being incremented. Fixup of commit 1c88824 Author: Christian Schwarz <[email protected]> Date: Fri Dec 1 12:52:59 2023 +0100 initial logical size calculation: add a bunch of metrics (#5995) Support custom types in broker (#5761) Old methods are unchanged for backwards compatibility. Added `SafekeeperDiscoveryRequest` and `SafekeeperDiscoveryResponse` types to serve as example, and also as a prerequisite for #5471 removed the if check from jobs ammended review comments fixing build abstracted tag generation of build images in reuse workflow fixing buikd
Update jsonwebtoken to 9 and sct to 0.7.1 (#6189) This increases the list of crates that base on `ring` 0.17. reverting the build changes eliminate GCC warning for unchecked result of fread (#6167) GCCproduce warning that bread result is not checked. It doesn't affect program logic, but better live without warnings. Check read result. - [ ] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. - [ ] Do not forget to reformat commit message to not include the above checklist Handle role deletion when project has no databases. (#6170) There is still default 'postgres' database, that may contain objects owned by the role or some ACLs. We need to reassign objects in this database too. If customer deleted all databases and then tries to delete role, that has some non-standard ACLs, `apply_config` operation will stuck because of failing role deletion. fix metric `pageserver_initial_logical_size_start_calculation` (#6191) It wasn't being incremented. Fixup of commit 1c88824 Author: Christian Schwarz <[email protected]> Date: Fri Dec 1 12:52:59 2023 +0100 initial logical size calculation: add a bunch of metrics (#5995) Support custom types in broker (#5761) Old methods are unchanged for backwards compatibility. Added `SafekeeperDiscoveryRequest` and `SafekeeperDiscoveryResponse` types to serve as example, and also as a prerequisite for #5471 removed the if check from jobs ammended review comments fixing build abstracted tag generation of build images in reuse workflow fixing buikd
Old methods are unchanged for backwards compatibility. Added
SafekeeperDiscoveryRequest
andSafekeeperDiscoveryResponse
types to serve as example, and also as a prerequisite for #5471