Skip to content

Conversation

@wardlican
Copy link
Contributor

@wardlican wardlican commented Nov 25, 2025

Why are the changes needed?

In master-slave mode, requests from the slave node's OpenAPI will be automatically forwarded to the master node.

Close #3963.

Brief change log

Add the RequestForwarder class to intercept and forward requests in http.before.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

wardli added 21 commits October 29, 2025 17:49
@github-actions github-actions bot added module:ams-server Ams server module module:ams-optimizer AMS optimizer module module:common labels Nov 25, 2025
wardli added 3 commits November 25, 2025 16:19
# Conflicts:
#	amoro-ams/src/main/java/org/apache/amoro/server/dashboard/DashboardServer.java
#	amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultTableService.java
@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@amoro.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 26, 2025
@wardlican
Copy link
Contributor Author

Please help with the code review.

@github-actions github-actions bot removed the stale label Dec 27, 2025
wardli and others added 8 commits December 29, 2025 11:01
# Conflicts:
#	amoro-ams/src/main/java/org/apache/amoro/server/ha/ZkHighAvailabilityContainer.java
#	amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultTableService.java
#	amoro-ams/src/main/resources/mysql/upgrade.sql
#	amoro-ams/src/main/resources/postgres/upgrade.sql
#	amoro-ams/src/test/java/org/apache/amoro/server/AMSServiceTestBase.java
…troduces a new solution for storing allocation information based on a database.
…troduces a new solution for storing allocation information based on a database.
# Conflicts:
#	amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultTableService.java
@github-actions github-actions bot added the type:docs Improvements or additions to documentation label Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-optimizer AMS optimizer module module:ams-server Ams server module module:common type:docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Subtask]: Supports forwarding OpenAPI requests to the master node in master-slave mode.

1 participant