Skip to content

metadata: merge snapshot labels with metadata's labels#3025

Merged
crosbymichael merged 1 commit intocontainerd:masterfrom
fuweid:bugfix_merge_label
Feb 18, 2019
Merged

metadata: merge snapshot labels with metadata's labels#3025
crosbymichael merged 1 commit intocontainerd:masterfrom
fuweid:bugfix_merge_label

Conversation

@fuweid
Copy link
Copy Markdown
Member

@fuweid fuweid commented Feb 18, 2019

fix the no-op issue.

Signed-off-by: Wei Fu [email protected]

@fuweid fuweid force-pushed the bugfix_merge_label branch 2 times, most recently from fa5c34a to 81506a1 Compare February 18, 2019 07:51
@fuweid
Copy link
Copy Markdown
Member Author

fuweid commented Feb 18, 2019

--- FAIL: TestCheckpointRestoreNewContainer (5.65s)
    container_checkpoint_test.go:325: io.containerd.runc.v1: failed to listen to abstract unix socket "/containerd-shim/testing/TestCheckpointRestoreNewContainer/shim.sock": listen unix /containerd-shim/testing/TestCheckpointRestoreNewContainer/shim.sock: bind: address already in use

flaky case.

@fuweid fuweid force-pushed the bugfix_merge_label branch from 81506a1 to 4b3e0a8 Compare February 18, 2019 08:11
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3025 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3025   +/-   ##
=======================================
  Coverage   43.96%   43.96%           
=======================================
  Files         102      102           
  Lines       10881    10881           
=======================================
  Hits         4784     4784           
  Misses       5362     5362           
  Partials      735      735
Flag Coverage Δ
#linux 47.58% <0%> (ø) ⬆️
#windows 41.18% <0%> (ø) ⬆️
Impacted Files Coverage Δ
metadata/snapshot.go 45.8% <0%> (ø) ⬆️

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 a378dbc...4b3e0a8. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

@crosbymichael crosbymichael merged commit ee916fe into containerd:master Feb 18, 2019
@fuweid fuweid deleted the bugfix_merge_label branch February 20, 2019 06:32
@wangpeng168
Copy link
Copy Markdown
Contributor

wangpeng168 commented Jul 13, 2019

@fuweid @crosbymichael Hello, may I ask when this bug fix can be merged into releases 1.2?

@fuweid
Copy link
Copy Markdown
Member Author

fuweid commented Jul 14, 2019

@wangpeng168 It makes sense to me. :)

BTW, we don't have #3055 improvement in release/1.2, Do you have any problems without patches?

@wangpeng168
Copy link
Copy Markdown
Contributor

@fuweid #3055 This problem is not resolved #3025, and there is no conflict, why not backport to release/1.2?

@fuweid
Copy link
Copy Markdown
Member Author

fuweid commented Jul 20, 2019

@wangpeng168 sorry for misunderstanding. I am happy to do fix in current release. But I just want to know the scenario because the metadata doesn’t pass the option down to the snapshot plugin and the snapshot doesn’t have any labels basically.

@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Jul 22, 2019

I realize this code was not correct before. However, I am not sure this is how it should be fixed. The problem is that the backend really shouldn't be overwriting labels within the metadata store. In fact I am not sure this should really be overlaying the labels at all since the labels should flow to the backend, but we need to be careful of what the use case is of the backend adding non-user-set labels.

@dmcgowan
Copy link
Copy Markdown
Member

Read this backwards, it will not overwrite, but the backend could set labels not intended. I think maybe filtering the labels coming from the backend or always overwriting the whole map is reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants