Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: adding virtual resource allocator #33508

Merged
merged 5 commits into from
Jun 3, 2024

Conversation

tedxu
Copy link
Collaborator

@tedxu tedxu commented May 31, 2024

See #33559

tedxu added 2 commits May 30, 2024 10:06
Signed-off-by: Ted Xu <ted.xu@zilliz.com>
Signed-off-by: Ted Xu <ted.xu@zilliz.com>
@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label May 31, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement do-not-merge/missing-related-issue labels May 31, 2024
Copy link
Contributor

mergify bot commented May 31, 2024

@tedxu Please associate the related issue to the body of your Pull Request. (eg. “issue: #”)

Copy link
Contributor

mergify bot commented May 31, 2024

@tedxu ut workflow job failed, comment rerun ut can trigger the job again.

Signed-off-by: Ted Xu <ted.xu@zilliz.com>
Copy link
Contributor

mergify bot commented May 31, 2024

@tedxu ut workflow job failed, comment rerun ut can trigger the job again.

Signed-off-by: Ted Xu <ted.xu@zilliz.com>
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 92.64706% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 81.98%. Comparing base (5452376) to head (1ad3185).
Report is 67 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #33508      +/-   ##
==========================================
- Coverage   82.06%   81.98%   -0.09%     
==========================================
  Files        1012     1015       +3     
  Lines      128806   130177    +1371     
==========================================
+ Hits       105702   106721    +1019     
- Misses      19112    19469     +357     
+ Partials     3992     3987       -5     
Files Coverage Δ
pkg/util/vralloc/alloc.go 92.64% <92.64%> (ø)

... and 143 files with indirect coverage changes

@mergify mergify bot added the ci-passed label May 31, 2024
@sunby
Copy link
Contributor

sunby commented Jun 3, 2024

/lgtm

Signed-off-by: Ted Xu <ted.xu@zilliz.com>
@sre-ci-robot sre-ci-robot removed the lgtm label Jun 3, 2024
@mergify mergify bot removed the ci-passed label Jun 3, 2024
type Allocator interface {
// Allocate allocates the resource, returns true if the resource is allocated. If allocation failed, returns the short resource.
// The short resource is a positive value, e.g., if there is additional 8 bytes in disk needed, returns (0, 0, 8).
Allocate(id string, r *Resource) (allocated bool, short *Resource)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to make id's type as generic type

@mergify mergify bot added the ci-passed label Jun 3, 2024
@sunby
Copy link
Contributor

sunby commented Jun 3, 2024

/lgtm

@congqixia
Copy link
Contributor

/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia, tedxu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

mergify bot commented Jun 3, 2024

@tedxu E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@tedxu
Copy link
Collaborator Author

tedxu commented Jun 3, 2024

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Jun 3, 2024
@sre-ci-robot sre-ci-robot merged commit d0a0eac into milvus-io:master Jun 3, 2024
15 checks passed
yellow-shine pushed a commit to yellow-shine/milvus that referenced this pull request Jul 2, 2024
See milvus-io#33559

---------

Signed-off-by: Ted Xu <ted.xu@zilliz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants