Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Supporting routing for topology-based delivery services#4724

Merged
rawlinp merged 30 commits intoapache:masterfrom
zrhoffman:topologies_routing
Jun 24, 2020
Merged

Supporting routing for topology-based delivery services#4724
rawlinp merged 30 commits intoapache:masterfrom
zrhoffman:topologies_routing

Conversation

@zrhoffman
Copy link
Copy Markdown
Member

What does this PR (Pull Request) do?

Which Traffic Control components are affected by this PR?

  • Documentation
  • Traffic Ops
  • Traffic Router

What is the best way to verify this PR?

  • Run Traffic Ops unit tests
  • Run Traffic Router integration tests

If this is a bug fix, what versions of Traffic Control are affected?

Not a bug fix.

The following criteria are ALL met by this PR

  • This PR includes tests
  • This PR includes documentation
  • This PR includes an update to CHANGELOG.md
  • This PR includes any and all required license headers
  • This PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

@rawlinp rawlinp added documentation related to documentation Traffic Ops related to Traffic Ops Traffic Router related to Traffic Router new feature A new feature, capability or behavior labels May 27, 2020
Comment thread docs/source/api/v3/cdns_name_snapshot.rst Outdated
Comment thread docs/source/api/v3/cdns_name_snapshot.rst Outdated
Comment thread docs/source/api/v3/cdns_name_snapshot_new.rst Outdated
Comment thread traffic_ops/traffic_ops_golang/crconfig/topologies.go Outdated
Comment thread traffic_ops/traffic_ops_golang/crconfig/topologies.go Outdated
@zrhoffman zrhoffman requested a review from rawlinp June 4, 2020 23:32
@zrhoffman zrhoffman force-pushed the topologies_routing branch from e88e73a to 341d1c6 Compare June 9, 2020 00:18
@zrhoffman
Copy link
Copy Markdown
Member Author

Rebased to resolve merge conflicts. As @rawlinp noted, no code needed to be changed, all it took was deleting a couple of empty conflict sections in Node.java.

@zrhoffman zrhoffman force-pushed the topologies_routing branch from a3d700b to a5cb269 Compare June 15, 2020 13:46
@zrhoffman zrhoffman requested a review from rawlinp June 15, 2020 19:41
@zrhoffman zrhoffman requested a review from rawlinp June 18, 2020 22:31
@zrhoffman zrhoffman requested a review from rawlinp June 23, 2020 23:32
Copy link
Copy Markdown
Contributor

@rawlinp rawlinp left a comment

Choose a reason for hiding this comment

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

DNS-based and HTTP-based routing now both appear to be functional for topology-based delivery services, but the tests are failing with NPEs:

Tests in error:
  ConfigHandlerTest.itParsesTheTopologiesConfig:288 » NullPointer
  DeliveryServiceTest.itAddsRequiredCapabilities:86 » NullPointer
  DeliveryServiceTest.itConfiguresRequestHeadersFromJSON:77 » NullPointer
  DeliveryServiceTest.itExtractsQueryParams:68 » NullPointer
  DeliveryServiceTest.itHandlesDuplicatesInConsistentHashQueryParams:55 » NullPointer
  DeliveryServiceTest.itHandlesLackOfConsistentHashQueryParamsInJSON:46 » NullPointer
  DeliveryServiceTest.itHandlesLackOfRequestHeaderNamesInJSON:38 » NullPointer
  ConsistentHasherTest.itHashesQueryParams:216 » NullPointer
  DeliveryServiceHTTPRoutingMissesTest.before:52 » NullPointer
  DeliveryServiceHTTPRoutingMissesTest.before:52 » NullPointer
  DeliveryServiceHTTPRoutingMissesTest.before:52 » NullPointer

Tests run: 211, Failures: 0, Errors: 11, Skipped: 23

@zrhoffman zrhoffman force-pushed the topologies_routing branch from a797a3a to bedb52d Compare June 24, 2020 01:35
@zrhoffman zrhoffman force-pushed the topologies_routing branch from bedb52d to 68c2181 Compare June 24, 2020 01:37
@zrhoffman
Copy link
Copy Markdown
Member Author

Tests pass now in 68c2181.

@zrhoffman zrhoffman requested a review from rawlinp June 24, 2020 01:38
@rawlinp
Copy link
Copy Markdown
Contributor

rawlinp commented Jun 24, 2020

That appears to have fixed ConfigHandlerTest, but I'm still seeing errors on the other ones:

Results :

Tests in error:
  DeliveryServiceTest.itAddsRequiredCapabilities:86 » NullPointer
  DeliveryServiceTest.itConfiguresRequestHeadersFromJSON:77 » NullPointer
  DeliveryServiceTest.itExtractsQueryParams:68 » NullPointer
  DeliveryServiceTest.itHandlesDuplicatesInConsistentHashQueryParams:55 » NullPointer
  DeliveryServiceTest.itHandlesLackOfConsistentHashQueryParamsInJSON:46 » NullPointer
  DeliveryServiceTest.itHandlesLackOfRequestHeaderNamesInJSON:38 » NullPointer
  ConsistentHasherTest.itHashesQueryParams:216 » NullPointer
  DeliveryServiceHTTPRoutingMissesTest.before:52 » NullPointer
  DeliveryServiceHTTPRoutingMissesTest.before:52 » NullPointer
  DeliveryServiceHTTPRoutingMissesTest.before:52 » NullPointer

Tests run: 211, Failures: 0, Errors: 10, Skipped: 23

@zrhoffman
Copy link
Copy Markdown
Member Author

NullPointer exceptions in ConsistentHasherTest, DeliveryServiceHTTPRoutingMissesTest, and DeliveryServiceTest fixed in e162d16.

Copy link
Copy Markdown
Contributor

@rawlinp rawlinp left a comment

Choose a reason for hiding this comment

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

Confirmed that TR unit and integration tests are passing now.

@rawlinp rawlinp merged commit df4be74 into apache:master Jun 24, 2020
@zrhoffman zrhoffman deleted the topologies_routing branch June 24, 2020 17:25
@zrhoffman zrhoffman added this to the Flexible Topologies milestone Sep 18, 2020
@zrhoffman zrhoffman removed this from the Flexible Topologies milestone Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation related to documentation new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops Traffic Router related to Traffic Router

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update /snapshot endpoints and Traffic Router for Topologies

2 participants