Skip to content

Commit 0c4d175

Browse files
authored
Add: replace mongoDB features proposal (#4812)
Signed-off-by: DongYoung Kim <[email protected]>
1 parent 72a4c14 commit 0c4d175

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

proposals/replace-mongoDB-features.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
| title | authors | creation-date | last-updated |
2+
|-------|------------------------------------------|---------------|--------------|
3+
| Replace mongoDB features not supported by AWS | [@kwx4957](https://github.com/kwx4957) | | |
4+
5+
### Summary
6+
7+
There are some operators that are supported by mongoDB but not by aws documentDB. Enhancing this feature with other features or code would make LitmusChaos more developer-friendly on AWS.
8+
9+
### Goals
10+
11+
- Changing features not supported by the cloud environment (AWS) with alternative operators or in code
12+
13+
### Implementation Details
14+
[AWS support api scanning](https://docs.aws.amazon.com/documentdb/latest/developerguide/migration-playbook.html)
15+
16+
As a result of using these features, the two operators $facet and $bucket are not supported by AWS. We are using the following features in graphQL and expect that modifying them with other features or code will make it easier to run LitmusChaos on AWS.
17+
18+
```
19+
he following 2 unsupported operators were found:
20+
$facet | found 8 time(s)
21+
$bucket | found 1 time(s)
22+
23+
Unsupported operators by filename and line number:
24+
$facet | lines = found 8 time(s)
25+
../../litmus/chaoscenter/graphql/server/pkg/chaos_infrastructure/service.go | lines = [664, 841]
26+
../../litmus/chaoscenter/graphql/server/pkg/chaos_experiment/handler/handler.go | lines = [733, 955, 1131]
27+
../../litmus/chaoscenter/graphql/server/pkg/chaos_experiment_run/handler/handler.go | lines = [531]
28+
../../litmus/chaoscenter/graphql/server/pkg/environment/handler/handler.go | lines = [346]
29+
../../litmus/chaoscenter/graphql/server/pkg/chaoshub/service.go | lines = [922]
30+
$bucket | lines = found 1 time(s)
31+
../../litmus/chaoscenter/graphql/server/pkg/chaos_experiment/handler/handler.go | lines = [1106]
32+
```
33+
34+
35+
## References
36+
[issue#4459](https://github.com/litmuschaos/litmus/issues/4459)
37+
[AWS support api](https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis.html#w144aac17c19b5b3)
38+
[Azure support api](https://learn.microsoft.com/es-es/azure/cosmos-db/mongodb/feature-support-36#aggregation-stages)

0 commit comments

Comments
 (0)