tillrohrmann opened a new pull request #7295: [FLINK-10748] Decouple 
RestServerEndpoint from Dispatcher
URL: https://github.com/apache/flink/pull/7295
 
 
   ## What is the purpose of the change
   
   This commits decouples the RestServerEndpoint from the Dispatcher by 
converting the
   RedirectHandler into LeaderRetrievalHandler which only retrieves the gateway 
of the
   current leader instead of redirecting the client. This is possible since the 
serving
   RestServerEndpoint no longer needs to be colocated with the Dispatcher and 
JobMaster
   after all RPC requests are serializable (e.g. no direct access on the 
ExecutionGraph
   is needed).
   
   With this change every RestServerEndpoint will automatically proxy to the 
current leader
   without needing to redirect the requesting client.
   
   ## Brief change log
   
   - Remove redirection logic from `RedirectHandler`
   - Rename `RedirectHandler` into `LeaderRetrievalHandler`
   - Remove `restAddressFuture` from all REST handlers except for the 
`JarListHandler`
   
   ## Verifying this change
   
   - Tested manually
   - Adapted former `RedirectHandlerTest` which is now called 
`LeaderRetrievalHandlerTest`
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to