Skip to content

Conversation

@ajbeamon
Copy link
Contributor

Fix an unknown_error when the file passed to fileconfigure doesn't contain a valid object (e.g. if you omit the enclosing {} of your object).

Fix an internal error when configuring regions with some storage servers that don't have a datacenter set.

…ntain a valid object (e.g. if you omit the enclosing {} of your object).

Fix an internal error when configuring regions with some storage servers that don't have a datacenter set.
auto ssi = decodeServerListValue( s.value );
if ( !ssi.locality.dcId().present() || !newDcIds.count(ssi.locality.dcId().get()) ) {
missingDcIds.insert(ssi.locality.dcId().get());
missingDcIds.insert(ssi.locality.dcId());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@etschannen Can you verify that treating unset datacenter IDs as all the same is correct with respect to line 433 below?

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be fine, it will trigger that error, which seems to be the intended behavior

@ajbeamon ajbeamon requested a review from etschannen August 19, 2019 18:43
@etschannen etschannen merged commit 3965a95 into apple:release-6.2 Aug 19, 2019
@ajbeamon ajbeamon deleted the fix-fileconfigure-error-cases branch August 19, 2019 22:00
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.

2 participants