Skip to content

Add indices over tasks and services by referenced network and secret IDs#1728

Merged
aluzzardi merged 2 commits intomoby:masterfrom
aaronlehmann:multi-index
Nov 2, 2016
Merged

Add indices over tasks and services by referenced network and secret IDs#1728
aluzzardi merged 2 commits intomoby:masterfrom
aaronlehmann:multi-index

Conversation

@aaronlehmann
Copy link
Copy Markdown
Collaborator

Previously, it was not possible to have indices which could have more
than one value per object. This vendors a fork of go-memdb that adds
this feature, from a PR that has been pending for more than eight
months. It then adds indices over tasks and services for the network and
secret IDs referenced by the tasks and services. Network deletion is
updated to use the new index instead of listing all services.

cc @aluzzardi @mrjana @diogomonica @mavenugo

github.com/google/certificate-transparency 0f6e3d1d1ba4d03fdaab7cd716f36255c2e48341
github.com/hashicorp/go-immutable-radix 8e8ed81f8f0bf1bdd829593fdd5c29922c1ea990
github.com/hashicorp/go-memdb 98f52f52d7a476958fa9da671354d270c50661a7
github.com/hashicorp/go-memdb 608dda3b1410a73eaf3ac8b517c9ae7ebab6aa87 https://github.com/floridoo/go-memdb
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you think we should fork the fork and rebase?

Is our vendored version newer than the fork (e.g. are we removing fixes from master)?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Our vendored version is a few days newer, but I checked and the only changes that the fork misses are new features that we don't use. There are no missing bugfixes.

Previously, it was not possible to have indices which could have more
than one value per object. This vendors a fork of go-memdb that adds
this feature, from a PR that has been pending for more than eight
months. It then adds indices over tasks and services for the network and
secret IDs referenced by the tasks and services. Network deletion is
updated to use the new index instead of listing all services.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 2, 2016

Current coverage is 55.92% (diff: 49.53%)

Merging #1728 into master will decrease coverage by 0.05%

@@             master      #1728   diff @@
==========================================
  Files            96         96          
  Lines         14922      15005    +83   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           8353       8391    +38   
- Misses         5464       5494    +30   
- Partials       1105       1120    +15   

Sunburst

Powered by Codecov. Last update 6a9f93f...fd16d41

@mavenugo
Copy link
Copy Markdown
Contributor

mavenugo commented Nov 2, 2016

Thanks @aaronlehmann would you mind including the fix for #1724 here instead ? I can close #1724 given including it here will be a better fix ?

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@aaronlehmann
Copy link
Copy Markdown
Collaborator Author

@mavenugo: I added a commit to do this. It involved a few changes to the orchestrator since I found some cases where we could create a task after the service had been deleted.

@diogomonica
Copy link
Copy Markdown
Contributor

LGTM

Thanks for doing this!

@mavenugo
Copy link
Copy Markdown
Contributor

mavenugo commented Nov 2, 2016

👍 thanks @aaronlehmann. I will close #1724 now.

@aluzzardi
Copy link
Copy Markdown
Member

LGTM

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants