Skip to content

Update Orc8r’s subscriberdb servicer to support flat subscriber digests#7302

Merged
hcgatewood merged 8 commits intomagma:masterfrom
wangyyt1013:subscriberdb-servicer-digest-v2
Jun 11, 2021
Merged

Update Orc8r’s subscriberdb servicer to support flat subscriber digests#7302
hcgatewood merged 8 commits intomagma:masterfrom
wangyyt1013:subscriberdb-servicer-digest-v2

Conversation

@wangyyt1013
Copy link
Copy Markdown
Member

@wangyyt1013 wangyyt1013 commented Jun 3, 2021

Signed-off-by: Yuanyuting Wang [email protected]

Summary

  1. Modify protos for subscriberdb servicer to include digest/no-update short-circuiting logic-related fields in ListSubscribersRequest and ListSubscribersResponse
  2. Modify ListSubscribers rpc implementation to include logic for comparing gateway and cloud digests to decide whether to send over updated subscriber data
  3. Add test case for communicating with the servicer using digests

Test Plan

  1. Run all existing tests. All should pass
  2. Add new test case in subscriberdb_servicer_test.go that tests the subscriberdb cloud servicer with digests. This test should also pass

Additional Information

@wangyyt1013 wangyyt1013 added the component: orc8r Orchestrator-related issue label Jun 3, 2021
@wangyyt1013 wangyyt1013 self-assigned this Jun 3, 2021
@pull-request-size pull-request-size bot added the size/XL Denotes a Pull Request that changes 500-999 lines. label Jun 3, 2021
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 3, 2021

Thanks for opening a PR! 💯 Please note that all commits must be signed off. This is enforced by the DCO check.

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@magmabot magmabot added the component: agw Access gateway-related issue label Jun 3, 2021
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch 3 times, most recently from e1274f8 to 505570f Compare June 4, 2021 19:32
@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/XL Denotes a Pull Request that changes 500-999 lines. labels Jun 4, 2021
@wangyyt1013 wangyyt1013 marked this pull request as ready for review June 4, 2021 19:32
@wangyyt1013 wangyyt1013 requested a review from a team as a code owner June 4, 2021 19:32
@wangyyt1013 wangyyt1013 requested review from a team and koolzz June 4, 2021 19:32
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch from 505570f to eb2080c Compare June 4, 2021 19:43
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch from eb2080c to ca70ed3 Compare June 4, 2021 21:31
@wangyyt1013 wangyyt1013 requested a review from emakeev June 4, 2021 21:46
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/protos/subscriberdb.proto Outdated
Comment thread lte/protos/subscriberdb.proto Outdated
@pull-request-size pull-request-size bot added size/XL Denotes a Pull Request that changes 500-999 lines. and removed size/L Denotes a Pull Request that changes 100-499 lines. labels Jun 7, 2021
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch from 9dfdb75 to 5f3cc48 Compare June 7, 2021 17:00
@wangyyt1013 wangyyt1013 requested a review from hcgatewood June 7, 2021 17:00
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch from 5f3cc48 to fd9dd1c Compare June 7, 2021 17:02
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch 2 times, most recently from 99a33e3 to d43bc79 Compare June 8, 2021 22:02
Comment thread lte/cloud/go/services/subscriberdb/config.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/protos/subscriberdb.proto Outdated
Comment thread lte/protos/subscriberdb.proto Outdated
Comment thread orc8r/cloud/go/mproto/mproto.go Outdated
Comment thread orc8r/cloud/go/mproto/mproto.go
Comment thread orc8r/cloud/go/mproto/testdata/determinisic-digest.b64.golden
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch 2 times, most recently from ba1a25c to e75bc3c Compare June 10, 2021 12:48
@wangyyt1013 wangyyt1013 requested a review from hcgatewood June 10, 2021 12:48
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch from e75bc3c to af6891b Compare June 10, 2021 21:46
@pull-request-size pull-request-size bot added size/XXL Denotes a Pull Request that changes 1000+ lines. and removed size/XL Denotes a Pull Request that changes 500-999 lines. labels Jun 10, 2021
Signed-off-by: Yuanyuting Wang <[email protected]>
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch from af6891b to 2b6d6df Compare June 10, 2021 22:01
@pull-request-size pull-request-size bot added size/XL Denotes a Pull Request that changes 500-999 lines. and removed size/XXL Denotes a Pull Request that changes 1000+ lines. labels Jun 10, 2021
Copy link
Copy Markdown
Contributor

@hcgatewood hcgatewood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a few cosmetic requests, then let's go ahead and merge

Comment thread orc8r/cloud/go/mproto/mproto.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer_test.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/subscriberdb/main.go Outdated
Comment thread lte/protos/subscriberdb.proto Outdated
@wangyyt1013 wangyyt1013 requested a review from themarwhal June 11, 2021 15:46
@wangyyt1013 wangyyt1013 requested a review from hcgatewood June 11, 2021 16:23
Comment thread lte/cloud/go/services/subscriberdb/servicers/subscriberdb_servicer.go Outdated
Signed-off-by: Yuanyuting Wang <[email protected]>
@wangyyt1013 wangyyt1013 force-pushed the subscriberdb-servicer-digest-v2 branch from 1d3eca4 to e660ffa Compare June 11, 2021 20:21
@hcgatewood hcgatewood enabled auto-merge (squash) June 11, 2021 20:25
@hcgatewood hcgatewood merged commit e2e49ff into magma:master Jun 11, 2021
rmeleromira pushed a commit to rmeleromira/magma that referenced this pull request Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: agw Access gateway-related issue component: orc8r Orchestrator-related issue size/XL Denotes a Pull Request that changes 500-999 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants