get_part_nodes should raise error on invalid part
Bug #1583798 reported by
clayg
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
In Progress
|
Wishlist
|
Sachin |
Bug Description
When you ask a ring to `get_part_nodes` for a partition number > partition_count - 1 you get back an empty list [1].
This is almost guaranteed to have strange behaviors for code that is expecting `get_part_nodes` to return a list of devices equal to the length of the rings replicas (or at least >= int(replica_
It should raise a specific Error (ValueError? IndexError?).
1. https:/
Changed in swift: | |
assignee: | nobody → Michael Glaser (mikeg451) |
description: | updated |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/319988
Review: https:/