Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

feature: add a app create interface to the java client #179

Closed
cauchy1988 opened this issue Mar 14, 2022 · 0 comments
Closed

feature: add a app create interface to the java client #179

cauchy1988 opened this issue Mar 14, 2022 · 0 comments

Comments

@cauchy1988
Copy link
Contributor

[what i need?]
As mentioned in the pegasus issue : apache/incubator-pegasus#924
we wanna to create new app in container circumstances such as docker in k8s, but it is not convenient and comfortable to add the "run.sh" and "all the executed pegasus bin files" to the docker which running business code, so we think that pegasus need an app create interface

[what i will do]
i will add two new interface to the java client which are 'createApp' and 'isAppHealthy';

  1. The 'createApp' interface‘s logic is almost the same with the 'replication_ddl_client.h'
  2. The reason why 'isAppHealthy' interface is needed is that we can not make sure that the newly created app is fully healthy after the successful calling of 'createApp' interface;users need this interface to ensure each partition of the newly created app has enough replicas;

[how can i do]
I will reuse the 'MetaSession' class which already in the java client to send the ’RPC_CM_CREATE_APP‘ rpc to the server side, And considering the two added interface has 'timeoutMs' parameter, I refactor this class code simply;

@cauchy1988 cauchy1988 changed the title add a app create interface to the java client feature: add a app create interface to the java client Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants