Feature #4717
closed[API] [SDKs] Read-only flag on keep_services table as hint to clients not to try to write.
Added by Peter Amstutz about 10 years ago. Updated over 9 years ago.
Updated by Tom Clegg about 10 years ago
- Target version deleted (
Arvados Future Sprints)
Updated by Tom Clegg almost 10 years ago
- Target version set to Arvados Future Sprints
Updated by Tom Clegg almost 10 years ago
- Subject changed from [API] Read-only flag on keep_services table as hint to clients not to try to write. to [API] [SDKs] Read-only flag on keep_services table as hint to clients not to try to write.
Updated by Tom Clegg over 9 years ago
- Target version changed from Arvados Future Sprints to 2015-04-29 sprint
Updated by Tom Clegg over 9 years ago
- Assigned To set to Tom Clegg
- Story points changed from 1.0 to 0.5
Updated by Tom Clegg over 9 years ago
Noted #5414 as a "check for conflicts if 5414 isn't merged yet" reminder.
Updated by Peter Amstutz over 9 years ago
- Assigned To changed from Tom Clegg to Peter Amstutz
Updated by Tom Clegg over 9 years ago
- Target version changed from 2015-04-29 sprint to 2015-05-20 sprint
Updated by Radhika Chippada over 9 years ago
- Status changed from New to In Progress
- Assigned To changed from Peter Amstutz to Radhika Chippada
Updated by Tom Clegg over 9 years ago
At e41260f
In the Go SDK, WritableRoots and writableRoots seem to mean writableLocalRoots, so should probably be renamed accordingly.
For style and readability, suggest collapsing the types, putting the locals together, and keeping the newX parameter name trend:
-func (kc *KeepClient) SetServiceRoots(newLocals, newGateways map[string]string, writableRoots map[string]string) +func (kc *KeepClient) SetServiceRoots(newLocals, newWritableLocals, newGateways map[string]string)
pull worker doesn't write to its keepClient, so suggest this in pull_worker.go:
- keepClient.SetServiceRoots(service_roots, nil, keepClient.WritableRoots()) + keepClient.SetServiceRoots(service_roots, nil, nil)
Please use go test -check.vv
instead of cluttering tests with debug printfs:
log.Printf("TestPutWant2ReplicasWithOnlyOneWritableRoots")
In keep.py, suggest:
- if (need_writable == True):
+ if need_writable:
And:
- self._writable_services = [{
- 'uuid': 'proxy',
- '_service_root': proxy,
- }]
+ self._writable_services = self._keep_services
Migration: I think you could change "def up" to "def change" and remove the explicit down-migration, and Rails would DTRT. (But then, I also thought "rails g migration" would have done this for you, but maybe not...?)
Updated by Radhika Chippada over 9 years ago
Addressed all comments and merged into master. (Yes, the change method worked for both up and down for this case). Thanks.
Updated by Radhika Chippada over 9 years ago
- Status changed from In Progress to Resolved
Applied in changeset arvados|commit:4110970a34689ed526c3365e9b64a784fba7efda.