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: Add schema update time verification for insert and upsert to use cache #39096

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JsDove
Copy link
Contributor

@JsDove JsDove commented Jan 8, 2025

enhance: Add schema update time verification for insert and upsert to use cache
issue: #39093

@sre-ci-robot sre-ci-robot added area/dependency Pull requests that update a dependency file size/M Denotes a PR that changes 30-99 lines. labels Jan 8, 2025
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Jan 8, 2025
Copy link
Contributor

mergify bot commented Jan 8, 2025

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

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 67.16418% with 22 lines in your changes missing coverage. Please review.

Project coverage is 81.01%. Comparing base (a99c92e) to head (a8d5aca).
Report is 14 commits behind head on master.

Files with missing lines Patch % Lines
internal/proxy/task_insert.go 50.00% 6 Missing and 2 partials ⚠️
internal/proxy/task_upsert.go 50.00% 6 Missing and 2 partials ⚠️
internal/rootcoord/alter_collection_task.go 50.00% 4 Missing ⚠️
pkg/util/merr/utils.go 75.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #39096       +/-   ##
===========================================
+ Coverage   69.48%   81.01%   +11.53%     
===========================================
  Files         300     1408     +1108     
  Lines       26905   198624   +171719     
===========================================
+ Hits        18694   160909   +142215     
- Misses       8211    32056    +23845     
- Partials        0     5659     +5659     
Components Coverage Δ
Client 79.50% <ø> (∅)
Core 69.48% <ø> (-0.01%) ⬇️
Go 82.95% <67.16%> (∅)
Files with missing lines Coverage Δ
internal/metastore/model/collection.go 84.51% <100.00%> (ø)
internal/proxy/impl.go 83.85% <100.00%> (ø)
internal/proxy/meta_cache.go 90.66% <100.00%> (ø)
internal/proxy/task.go 80.65% <100.00%> (ø)
internal/rootcoord/create_collection_task.go 90.47% <100.00%> (ø)
internal/rootcoord/root_coord.go 89.90% <100.00%> (ø)
pkg/util/merr/errors.go 92.18% <ø> (ø)
pkg/util/merr/utils.go 84.19% <75.00%> (ø)
internal/rootcoord/alter_collection_task.go 53.30% <50.00%> (ø)
internal/proxy/task_insert.go 72.99% <50.00%> (ø)
... and 1 more

... and 1098 files with indirect coverage changes

@JsDove JsDove force-pushed the schemacache branch 2 times, most recently from e9ddceb to 3185bf6 Compare January 9, 2025 02:30
@sre-ci-robot sre-ci-robot added size/L Denotes a PR that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Jan 9, 2025
@JsDove JsDove force-pushed the schemacache branch 3 times, most recently from 580fb0c to f69e405 Compare January 9, 2025 05:52
Copy link
Contributor

mergify bot commented Jan 9, 2025

@JsDove go-sdk check failed, comment rerun go-sdk can trigger the job again.

@JsDove JsDove force-pushed the schemacache branch 4 times, most recently from 59713cc to 61d41bc Compare January 9, 2025 11:23
Copy link
Contributor

mergify bot commented Jan 9, 2025

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

Copy link
Contributor

mergify bot commented Jan 9, 2025

@JsDove cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@JsDove
Copy link
Contributor Author

JsDove commented Jan 9, 2025

rerun cpp-unit-test

@JsDove
Copy link
Contributor Author

JsDove commented Jan 9, 2025

/run-cpu-e2e

Copy link
Member

@liliu-z liliu-z left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Copy link
Contributor

mergify bot commented Jan 17, 2025

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

@JsDove
Copy link
Contributor Author

JsDove commented Jan 17, 2025

/run-cpu-e2e

@sre-ci-robot sre-ci-robot removed the lgtm label Jan 17, 2025
@sre-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

Copy link
Contributor

mergify bot commented Jan 17, 2025

@JsDove go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Jan 17, 2025

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

if it.schemaTimestamp != 0 {
if it.schemaTimestamp != colInfo.updateTimestamp {
err := merr.WrapErrCollectionSchemaMisMatch(collectionName)
log.Ctx(ctx).Warn("collection schema mismatch", zap.String("collectionName", collectionName), zap.Error(err))
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't need a warn log here.
An info should be good because this error is as expected

@xiaofan-luan
Copy link
Collaborator

/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JsDove, liliu-z, xiaofan-luan

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:
  • OWNERS [liliu-z,xiaofan-luan]

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

… the cache

Signed-off-by: Xianhui.Lin <[email protected]>

fix unitest

Signed-off-by: Xianhui.Lin <[email protected]>

improve

Signed-off-by: Xianhui.Lin <[email protected]>

improve

Signed-off-by: Xianhui.Lin <[email protected]>

fix code

Signed-off-by: Xianhui.Lin <[email protected]>

fix test

Signed-off-by: Xianhui.Lin <[email protected]>

fix go test

Signed-off-by: Xianhui.Lin <[email protected]>

add go unitest

Signed-off-by: Xianhui.Lin <[email protected]>

fix unitest error

Signed-off-by: Xianhui.Lin <[email protected]>

fix ut

Signed-off-by: Xianhui.Lin <[email protected]>

improve

Signed-off-by: Xianhui.Lin <[email protected]>

createcollection use creats

Signed-off-by: Xianhui.Lin <[email protected]>

save to etcd

Signed-off-by: Xianhui.Lin <[email protected]>

fix e2e test error

Signed-off-by: Xianhui.Lin <[email protected]>

modify log level

Signed-off-by: Xianhui.Lin <[email protected]>
Copy link
Contributor

mergify bot commented Jan 20, 2025

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

@JsDove
Copy link
Contributor Author

JsDove commented Jan 20, 2025

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Jan 20, 2025

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

@JsDove
Copy link
Contributor Author

JsDove commented Jan 20, 2025

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Jan 20, 2025
sre-ci-robot pushed a commit that referenced this pull request Jan 21, 2025
…rt to use cache (#39382)

enhance: Add schema update time verification for insert and upsert to
use cache
issue: #39093
Related to pr: #39096

---------

Signed-off-by: Xianhui.Lin <[email protected]>
sre-ci-robot pushed a commit that referenced this pull request Jan 21, 2025
…rt to use cache (#39405)

enhance: Add schema update time verification for insert and upsert to
use cache
issue: #39093
Related to pr: #39096

Signed-off-by: Xianhui.Lin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/dependency Pull requests that update a dependency file ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants