chaos-tproxy icon indicating copy to clipboard operation
chaos-tproxy copied to clipboard

[Feat] Change to unix domain socket

Open RandyLambert opened this issue 3 years ago • 16 comments

  • Use use tokio::net::UnixListener instead of tokio::net::Unix for unix socket communication
  • https://github.com/chaos-mesh/rfcs/pull/34

Signed-off-by: RandyLambert [email protected]

RandyLambert avatar Jul 08 '22 10:07 RandyLambert

PTAL @Hexilee

Andrewmatilde avatar Aug 31 '22 03:08 Andrewmatilde

@RandyLambert Please fix the conflicts, then we can merge this PR.

Hexilee avatar Sep 19 '22 07:09 Hexilee

@RandyLambert Please fix the conflicts, then we can merge this PR.

@Hexilee fixed

RandyLambert avatar Sep 19 '22 09:09 RandyLambert

Could we merge this PR?

ping @Hexilee @Andrewmatilde

STRRL avatar Oct 14 '22 07:10 STRRL

Could we merge this PR?

Yes, I think we can.

Hexilee avatar Oct 14 '22 07:10 Hexilee

I guess not , this PR will block master branch release before this PR merged. https://github.com/chaos-mesh/chaos-mesh/pull/3553

Andrewmatilde avatar Oct 14 '22 07:10 Andrewmatilde

I guess not , this PR will block master branch release before this PR merged. chaos-mesh/chaos-mesh#3553

hmmm, it seems this PR brings breaking changes with chaos-tproxy and it requires to merge different PRs at the same time across different repos.

And that is nearly IMPOSSIBLE.

Please consider keeping the old flags and functionality, keep both stdio and uds.

After chaos-mesh/chaos-mesh#3553 get merged, remove stdio part.

STRRL avatar Oct 14 '22 08:10 STRRL

I guess not , this PR will block master branch release before this PR merged. chaos-mesh/chaos-mesh#3553

hmmm, it seems this PR brings breaking changes with chaos-tproxy and it requires to merge different PRs at the same time across different repos.

And that is nearly IMPOSSIBLE.

Please consider keeping the old flags and functionality, keep both stdio and uds.

After chaos-mesh/chaos-mesh#3553 get merged, remove stdio part.

PTAL @RandyLambert , also cc @Hexilee @Andrewmatilde

STRRL avatar Oct 14 '22 08:10 STRRL

I guess not , this PR will block master branch release before this PR merged. chaos-mesh/chaos-mesh#3553

hmmm, it seems this PR brings breaking changes with chaos-tproxy and it requires to merge different PRs at the same time across different repos. And that is nearly IMPOSSIBLE. Please consider keeping the old flags and functionality, keep both stdio and uds. After chaos-mesh/chaos-mesh#3553 get merged, remove stdio part.

PTAL @RandyLambert , also cc @Hexilee @Andrewmatilde

When chaos-mesh is used, it will be based on the release versions of tdoa and tproxy. I think this pr can be merged. Before the release version of toda and tproxy pulled before the dockfile of choas-mesh is not modified, this merge will not affect the use of chaos- mesh.

RandyLambert avatar Oct 16 '22 10:10 RandyLambert

I guess not , this PR will block master branch release before this PR merged. chaos-mesh/chaos-mesh#3553

hmmm, it seems this PR brings breaking changes with chaos-tproxy and it requires to merge different PRs at the same time across different repos. And that is nearly IMPOSSIBLE. Please consider keeping the old flags and functionality, keep both stdio and uds. After chaos-mesh/chaos-mesh#3553 get merged, remove stdio part.

PTAL @RandyLambert , also cc @Hexilee @Andrewmatilde

When chaos-mesh is used, it will be based on the release versions of tdoa and tproxy. I think this pr can be merged. Before the release version of toda and tproxy pulled before the dockfile of choas-mesh is not modified, this merge will not affect the use of chaos- mesh.

cc @Andrewmatilde

STRRL avatar Oct 17 '22 04:10 STRRL

I guess not , this PR will block master branch release before this PR merged. chaos-mesh/chaos-mesh#3553

hmmm, it seems this PR brings breaking changes with chaos-tproxy and it requires to merge different PRs at the same time across different repos. And that is nearly IMPOSSIBLE. Please consider keeping the old flags and functionality, keep both stdio and uds. After chaos-mesh/chaos-mesh#3553 get merged, remove stdio part.

PTAL @RandyLambert , also cc @Hexilee @Andrewmatilde

When chaos-mesh is used, it will be based on the release versions of tdoa and tproxy. I think this pr can be merged. Before the release version of toda and tproxy pulled before the dockfile of choas-mesh is not modified, this merge will not affect the use of chaos- mesh.

But when will this PR merge?

Andrewmatilde avatar Oct 17 '22 04:10 Andrewmatilde

But when will this https://github.com/chaos-mesh/chaos-mesh/pull/3553 merge?

I would push the review progress about this PR and chaos-mesh/chaos-mesh#3553, are there some kind of dependencies between these PRs? eg, one PR should be merged before another PR.

STRRL avatar Oct 17 '22 05:10 STRRL

I would push the review progress about this PR and chaos-mesh/chaos-mesh#3553, are there some kind of dependencies between these PRs? eg, one PR should be merged before another PR.

This PR have break changes on the parts of commucation between chaos-mesh & chaos-tproxy. chaos-mesh/chaos-mesh#3553 rely on a special version of this PR. But if this PR merge we will rollback it every time when release before chaos-mesh/chaos-mesh#3553 would merged.

Andrewmatilde avatar Oct 17 '22 05:10 Andrewmatilde

I would push the review progress about this PR and chaos-mesh/chaos-mesh#3553, are there some kind of dependencies between these PRs? eg, one PR should be merged before another PR.

This PR have break changes on the parts of commucation between chaos-mesh & chaos-tproxy. chaos-mesh/chaos-mesh#3553 rely on a special version of this PR. But if this PR merge we will rollback it every time when release before chaos-mesh/chaos-mesh#3553 would merged.

Actually, I do not think so. As @RandyLambert said, Chaos Mesh uses a versioned release of chaos-tproxy, merging this PR into master should NOT effect anything. 🤔

STRRL avatar Oct 17 '22 05:10 STRRL

Actually, I do not think so. As @RandyLambert said, Chaos Mesh uses a versioned release of chaos-tproxy, merging this PR into master should NOT effect anything. 🤔

There may have a problem in chaos-tproxy. Every versioned release of chaos-tproxy now rely on the master branch of chaos-tproxy. If this PR merge in master , it will affect the PR merged after it.

Andrewmatilde avatar Oct 17 '22 05:10 Andrewmatilde

If this PR merged , & then I merged #44 , & then I want to use it in chaos-mesh. I need to rollback #52 ,then create a released version.

Andrewmatilde avatar Oct 17 '22 05:10 Andrewmatilde