Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server shard map not reloaded on restart #2012

Closed
otoolep opened this issue Mar 19, 2015 · 7 comments
Closed

Server shard map not reloaded on restart #2012

otoolep opened this issue Mar 19, 2015 · 7 comments
Assignees

Comments

@otoolep
Copy link
Contributor

otoolep commented Mar 19, 2015

cc @benbjohnson

My testing shows this to be true. It's loaded when a shard is created, but not when the metastore is re-loaded.

@otoolep otoolep self-assigned this Mar 19, 2015
@pauldix
Copy link
Member

pauldix commented Mar 20, 2015

@otoolep can you give more detail on this? I'm not quite sure what this means.

@otoolep
Copy link
Contributor Author

otoolep commented Mar 20, 2015

Specifically, when a shard group is created, this code is executed:

https://github.com/influxdb/influxdb/blob/master/server.go#L1024

which updates:

https://github.com/influxdb/influxdb/blob/master/server.go#L73

but when this function is executed:

https://github.com/influxdb/influxdb/blob/master/server.go#L271

the map is not updated. I hit this during stats work, and planned to fix it as I continued my work on stats.

@otoolep
Copy link
Contributor Author

otoolep commented Mar 20, 2015

This is my hypothesis. All I have actually seen is that the map goes to nil after a restart and reload from metastore.

@pauldix
Copy link
Member

pauldix commented Mar 20, 2015

So wait, does that mean after restart none of the shards are there?

On Fri, Mar 20, 2015 at 4:16 PM, otoolep [email protected] wrote:

This is my hypothesis. All I have actually seen is that the map goes to []
after a restart and reload from metastore.


Reply to this email directly or view it on GitHub
#2012 (comment).

@pauldix
Copy link
Member

pauldix commented Mar 20, 2015

That's what I'm more interested in. What happens and what the severity of
the issue is.

On Fri, Mar 20, 2015 at 4:18 PM, Paul Dix [email protected] wrote:

So wait, does that mean after restart none of the shards are there?

On Fri, Mar 20, 2015 at 4:16 PM, otoolep [email protected] wrote:

This is my hypothesis. All I have actually seen is that the map goes to
[] after a restart and reload from metastore.


Reply to this email directly or view it on GitHub
#2012 (comment).

@otoolep
Copy link
Contributor Author

otoolep commented Mar 20, 2015

Queries continue to work fine after a restart, so it's not that serious. The system uses a different path when it comes to finding shards for reads and writes, this map is not actually that critical. I believe it's just for the purposes of optimization (some early idea we had), and the authoritative data is in the database and retention policy objects. In fact I was considering removing it since it seems like cruft. @benbjohnson might know better of course.

otoolep added a commit that referenced this issue Mar 24, 2015
@otoolep
Copy link
Contributor Author

otoolep commented Mar 24, 2015

Fixed.

@otoolep otoolep closed this as completed Mar 24, 2015
mark-rushakoff pushed a commit that referenced this issue Jan 11, 2019
add labels update endpoint and label colors
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

No branches or pull requests

2 participants