open-io / oio-sds

High Performance Software-Defined Object Storage for Big Data and AI, that supports Amazon S3 and Openstack Swift
https://www.openio.io
Other
664 stars 93 forks source link

account: allow to call the master service for reads #2075

Closed fvennetier closed 4 years ago

fvennetier commented 4 years ago
SUMMARY

Improve the account service API to allow calling the master service even for reads.

Also add a parameter to the event-agent "replicate" filter to enable this feature, and display a message in case of exception while refreshing the "replication_enabled" parameter.

Jira: CUS-142

ISSUE TYPE
COMPONENT NAME
SDS VERSION
oio-sds 5.5.5
codecov-commenter commented 4 years ago

Codecov Report

Merging #2075 into 5.x will decrease coverage by 0.94%. The diff coverage is 80.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##              5.x    #2075      +/-   ##
==========================================
- Coverage   78.42%   77.48%   -0.93%     
==========================================
  Files         378      360      -18     
  Lines       73403    71029    -2374     
  Branches     6963     6384     -579     
==========================================
- Hits        57556    55028    -2528     
- Misses      15748    15860     +112     
- Partials       99      141      +42     
Impacted Files Coverage Δ
oio/account/backend.py 67.35% <66.67%> (-0.40%) :arrow_down:
oio/event/filters/replicate.py 76.20% <71.43%> (-2.75%) :arrow_down:
oio/common/redis_conn.py 73.47% <75.00%> (+0.07%) :arrow_up:
oio/account/server.py 73.66% <87.50%> (+2.32%) :arrow_up:
tests/functional/m2_filters/test_filters.py 63.64% <0.00%> (-33.33%) :arrow_down:
metautils/lib/utils_svc_policy.c 56.60% <0.00%> (-22.12%) :arrow_down:
meta2v2/meta2_dedup_utils.c 0.00% <0.00%> (-18.55%) :arrow_down:
metautils/lib/utils_resolv.c 48.89% <0.00%> (-15.55%) :arrow_down:
meta1v2/meta1_backend_references.c 73.00% <0.00%> (-14.00%) :arrow_down:
events/oio_events_queue_beanstalkd.c 73.79% <0.00%> (-9.38%) :arrow_down:
... and 141 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8f12b58...54472e1. Read the comment docs.