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

InfluxDB goes unresponsive #8500

Closed
phemmer opened this issue Jun 15, 2017 · 60 comments
Closed

InfluxDB goes unresponsive #8500

phemmer opened this issue Jun 15, 2017 · 60 comments
Assignees
Milestone

Comments

@phemmer
Copy link
Contributor

phemmer commented Jun 15, 2017

Bug report

System info: [Include InfluxDB version, operating system name, and other relevant details]
Version: 0b4528b
OS: FreeBSD

Steps to reproduce:

  1. ???

Expected behavior: [What you expected to happen]
Keep working

Actual behavior: [What actually happened]
Stops responding. Process still running, but no longer responds to any queries.

Additional info: [Include gist of relevant config, logs, etc.]
Happens at random, but it seems the more activity, the more likely the issue will occur. Haven't identified a pattern yet.

Here's the output of SIGQUIT.
https://gist.githubusercontent.com/phemmer/251eab87914681d30f0e0435c664e9f7/raw/e79a847b896a7533586f6b384bd2aeb4c4c98083/log

@phemmer
Copy link
Contributor Author

phemmer commented Jun 15, 2017

As an additional note, it seems that when this happens, and I restart InfluxDB, one of my measurements will be corrupt. The measurement appears empty. Any attempt to insert into the measurement returns something like [shard 17] field type conflict. And even when I drop the measurement and try to recreate it, the error still occurs.

@phemmer
Copy link
Contributor Author

phemmer commented Jun 17, 2017

It just happened again. Working fine all day, and then just a minute ago it went unresponsive. The only thing I was doing (in addition to what's been going on all day long) was that I was skipping backwards in time a lot in grafana (the little left arrow thing next to the time selector in the top).

Here's another SIGQUIT dump: https://gist.githubusercontent.com/phemmer/251eab87914681d30f0e0435c664e9f7/raw/a63f6cdf6c54d89771630764a13d42aa07318f88/log2

Note however that this time I was running InfluxDB on a completely different host and OS. This time it's on Linux, and I was running a7ca7b5. I also had a completely brand new database as the crash last night completely corrupted my old one and I couldn't recover it.

Edit: And another... https://gist.githubusercontent.com/phemmer/251eab87914681d30f0e0435c664e9f7/raw/1008e1e1206e59501193d381fa99fc10af8972ae/log3

Edit: And just in case thats not enough SIGQUIT, here's some more: https://gist.githubusercontent.com/phemmer/251eab87914681d30f0e0435c664e9f7/raw/ac5fcb3757ff47f794dd8711bef51b1618e63b18/log4

@jwilder
Copy link
Contributor

jwilder commented Jun 21, 2017

Looks like a deadlock in the inmem index.

@benbjohnson
Copy link
Contributor

@phemmer Are you seeing any panics in your logs?

@phemmer
Copy link
Contributor Author

phemmer commented Jun 21, 2017

no

@jwilder
Copy link
Contributor

jwilder commented Jun 21, 2017

@phemmer Could you try #8518 to see if that helps?

@phemmer
Copy link
Contributor Author

phemmer commented Jun 21, 2017

Perhaps. I'll see if I can reproduce it in an isolated environment. I rolled back to v1.2 because the issue started happening every few minutes, and was constantly corrupting my database. Though given how frequently it was occurring, it shouldn't be hard.

@jwilder
Copy link
Contributor

jwilder commented Jun 21, 2017

@phemmer I would run show field keys on that measurement. [shard 17] field type conflict would indicate that a field type has switched somewhere.

@phemmer
Copy link
Contributor Author

phemmer commented Jun 21, 2017

I could drop the entire measurement drop measurement foo and the issue would still occur. show measurements would indicate that it's not there, yet I would still get that error trying to recreate it.

@ryantxu
Copy link

ryantxu commented Jun 24, 2017

I just upgraded my system to 1.3.0 (downloaded from https://dl.influxdata.com/influxdb/releases/influxdb-1.3.0.x86_64.rpm)

and then ran into troubles. Things run fine for ~1 min, then the whole system locks up and dies. I have to shutdown the aws instance and bring it back up to get in. I can't find any logging that clearly says what happened -- but can try to dig further if this is helpful.

I then tried upgrading to the nightly 1.4.0~n201706240800 / e014dd0 and I get the same behavior.

I then put back the 1.2.4 and things are OK again
sudo rpm -Uvh --oldpackage influxdb-1.2.4.x86_64.rpm

I don't know if this is related... let me know if there is any more info you want (and where to find it!)

@rbetts rbetts assigned e-dard and unassigned benbjohnson Jun 28, 2017
@e-dard
Copy link
Contributor

e-dard commented Jun 28, 2017

@ryantxu it looks like 1.4.0~n201706240800 would contain the suggested possible fix in #8518, which means that #8518 probably hasn't done the trick.

Does the server only lock up under write load or can you literally start it up and leave it to lock up without any writes or queries going in?

@e-dard
Copy link
Contributor

e-dard commented Jun 28, 2017

@phemmer did you have the same problems when trying #8518 or did you not get around to that?

@ryantxu
Copy link

ryantxu commented Jun 28, 2017

The setup has active writes and continuous queries running. It would take some work to test without that... but if useful, let me know.

@phemmer
Copy link
Contributor Author

phemmer commented Jun 28, 2017

@phemmer did you have the same problems when trying #8518 or did you not get around to that?

I have not had a chance. I'm not keen on doing this with my main InfluxDB and corrupting my DB again, so I need to duplicate the server and all the clients, which will take some work.

@e-dard
Copy link
Contributor

e-dard commented Jun 28, 2017

@ryantxu I'm trying to think of a way for us to be able to locally reproduce your situations so we can track down the deadlock. I figured as much that writes/queries were needed. If not, we probably would have seen this within our tests. @phemmer are you running CQs by chance?

@phemmer
Copy link
Contributor Author

phemmer commented Jun 28, 2017

No CQs

@e-dard
Copy link
Contributor

e-dard commented Jun 28, 2017

@phemmer @ryantxu I just realised I didn't ask—do you know if profile endpoints are responding on 8086? A blocking profile could be useful.. curl -o blocking.txt "http://localhost:8086/debug/pprof/block?debug=1"

@ryantxu if you're using 1.3 onwards then the new archive profile endpoint would be available to you: curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all"

@phemmer
Copy link
Contributor Author

phemmer commented Jun 29, 2017

I must say that as an InfluxDB user, the handling of this issue is concerning. With this issue, and #8533, we now have several people confirming the issue.
I created this issue well before InfluxDB 1.3.0 was released. An issue where at the very least InfluxDB becomes unresponsive, and at the worst results in DB corruption. How did a stable release get out without this issue being investigated and addressed? What is the purpose of the release candidates if they're not used to validate stability before general release?

@e-dard
Copy link
Contributor

e-dard commented Jun 29, 2017

@phemmer I can assure you that we're looking into this. We had hoped that #8518 would fix the issue, but it appears not according to @ryantxu's testing of the 1.4.0~n201706240800 nightly. You mention that the server goes unresponsive but I just wanted to get a couple of clear clarifications to help me try and isolate the issue:

  • does the entire 8086 write/query endpoint become unresponsive, or is it just related to the database in question?
  • if it's not the entire port, are you able to get profiles when the database does become unresponsive? As I mentioned previously, a blocking profile may provide some insight.

@phemmer
Copy link
Contributor Author

phemmer commented Jun 29, 2017

I understand we're working on it now, and I appreciate that, but how come it wasn't worked on until after 1.3.0 was released? That's my concern. As a user, I should be comfortable using stable releases.

I only had 1 database, so I was unable to determine if other databases were affected.
Other operations were responsive, such as I can confirm the ping endpoint was responsive.

I'm working on reproducing this in a lab right now. Hopefully I'll be able to do so.

@benbjohnson
Copy link
Contributor

@phemmer Are you able to share your log files related to the hang?

@rbetts
Copy link
Contributor

rbetts commented Jun 29, 2017

@phemmer We are running about 100 production instances of 1.3.0 and have been running 1.3.0 shadows internally for weeks; we have never reproduced this error. We are giving this issue a very high priority - it is blocking our 1.3 GA build and announcement as it stands. I apologize for the frustration it has caused you.

@e-dard
Copy link
Contributor

e-dard commented Jul 5, 2017

@phemmer by any chance do you have the server logs from either of the above two SIGQUITs?

@phemmer
Copy link
Contributor Author

phemmer commented Jul 5, 2017

Unfortunately not as the logs have already rotated out (it's a personal box, and I don't permanently archive the logs).
I can however tell you that for a long time prior, and after the issue started, it was nothing but writes with 204 responses, and then writes with 500 responses. There weren't even any queries being executed around the time. It's possible there might have been something way in the past (several minutes before the issue started), but nothing near the time of the event.
The database also only has a single writer. So no concurrent writes.

@e-dard
Copy link
Contributor

e-dard commented Jul 5, 2017

OK no worries. Was the box under significant write load? Roughly how many writes per second do you think? And typically what would your batch sizes be?

@phemmer
Copy link
Contributor Author

phemmer commented Jul 5, 2017

Average WPS is around 6. The writer flushes every 100ms, and when its buffer is full. Normal batch size is pretty small, probably less than 20 points. However once every 60 seconds a batch (or multiples if it can't fit in the write buffer, buffer size is 512KB, and the average point size is ~110B) will come through that is about 4k points.

@phemmer
Copy link
Contributor Author

phemmer commented Jul 5, 2017

Oh, probably a very critical bit of information I forgot about, I set wal-fsync-delay = "100ms". This was in attempt to solve some major performance issues I was having. Unfortunately it didn't solve the issue and I instead had to drop the database (seems the issue starts happening once the DB gets large. not number of series, but data size, age, or number of points). But I left the setting around since it did seem to help.

@jwilder
Copy link
Contributor

jwilder commented Jul 5, 2017

@phemmer What kind of disks do you have? SSDs? HDD? Can you run iostat -xdz 1 30 when you are getting the timeouts?

Would you be able to test #8567, it may fix the timeouts.

For the higher memory usage, if you can grab a memory profile via:

curl -o heap.txt "http://localhost:8086/debug/pprof/heap?debug=1" 

that might help identify what may be consuming more memory.

@phemmer
Copy link
Contributor Author

phemmer commented Jul 5, 2017

Hybrid disks.
I don't think this is a disk issue. When it happens, influxdb stays stuck until I restart it. It does not recover own its own.

I'll see about reproducing this again (I downgraded back to 1.2.4 which does not have the issue), but probably not tonight. Maybe tomorrow.

@jwilder
Copy link
Contributor

jwilder commented Jul 5, 2017

Can you elaborate on "Hybrid disks"? What are the disks and how are they setup? Are they RAIDed? Directly attached?

@phemmer
Copy link
Contributor Author

phemmer commented Jul 5, 2017

Each disk is a combination of SSD & spinning. There's 2 of them in raid-1. Yes, direct attach.

@e-dard
Copy link
Contributor

e-dard commented Jul 6, 2017

@phemmer could you clarify something for us? Throughout all of the this ticket have you been running InfluxDB on the same HW (with the raid-1 hybrid drives), and could you also confirm:

  • if you've been building influxdb or using nightlies/releases.
  • if you have been building influxdb: with what version of Go?
  • have you had wal-fsync-delay = "100ms" on the entire time? Any other non-default configuration values?

I just want to get a better understanding of your environment. Cheers.

@phemmer
Copy link
Contributor Author

phemmer commented Jul 6, 2017

Yes, same hardware.
I've been building myself. Go 1.8.1.

@jwilder
Copy link
Contributor

jwilder commented Jul 7, 2017

#8577 should fix the case where writer is blocked indefinitely on the syncErr channel.

@jwilder
Copy link
Contributor

jwilder commented Jul 7, 2017

@phemmer All of the pending fixes are on the 1.3 branch and master now. Would you be able to test off of 1.3 and see if the issue is resolved?

@jwilder
Copy link
Contributor

jwilder commented Jul 8, 2017

@stuartcarnie and I have found the cause for the initial deadlock on Measurement reported in the issue description. We'll get a fix up for that as well.

@phemmer
Copy link
Contributor Author

phemmer commented Jul 8, 2017

Would you be able to test off of 1.3 and see if the issue is resolved?

I might be able to tomorrow night. I'll be intermittently available to test things as starting yesterday I'm on vacation through next week. But that one should be really easy to test. It generally occurred within a few minutes of starting InfluxDB.

stuartcarnie and I have found the cause for the initial deadlock on Measurement reported in the issue description. We'll get a fix up for that as well.

🎆 I'm eager to see that PR, as when I skimmed the code, I couldn't see any obvious explanation for it. Everywhere I could see a lock being taken, all code paths released it.

@jwilder
Copy link
Contributor

jwilder commented Jul 8, 2017

It's here: https://github.com/influxdata/influxdb/blob/master/tsdb/index/inmem/meta.go#L333 and https://github.com/influxdata/influxdb/blob/master/tsdb/index/inmem/meta.go#L338

The RLock is not released.

@phemmer
Copy link
Contributor Author

phemmer commented Jul 8, 2017

Ahha. And that makes sense why I'm able to trigger the issue so easily. I have InfluxDB hooked up to splunk, so splunk can query InfluxDB directly. Splunk is quite fond of killing searches while they're in progress. I didn't even think of that atypical behavior.

@stuartcarnie stuartcarnie self-assigned this Jul 8, 2017
@stuartcarnie stuartcarnie added review and removed ready labels Jul 8, 2017
@ghost ghost removed the review label Jul 10, 2017
kizniche added a commit to kizniche/Mycodo that referenced this issue Jul 21, 2017
@xor22h
Copy link

xor22h commented Apr 2, 2018

Seems to have same issue with influxdb:1.5-alpine

Blocking output.

--- contention:
cycles/second=3600064271
6252195909477307 1738355 @ 0x43d002 0xb3a653 0xb8467b 0x45cb41
#	0x43d001	runtime.selectgo+0x651										/usr/local/go/src/runtime/select.go:628
#	0xb3a652	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compact+0x292				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1781
#	0xb8467a	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableLevelCompactions.func1+0x5a	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:355

3028675127701681 84130 @ 0x43d002 0x94c034 0x45cb41
#	0x43d001	runtime.selectgo+0x651							/usr/local/go/src/runtime/select.go:628
#	0x94c033	github.com/influxdata/influxdb/tsdb.(*Store).monitorShards+0x213	/go/src/github.com/influxdata/influxdb/tsdb/store.go:1690

2298659648282734 640049 @ 0x43d002 0xb39e53 0xb84701 0x45cb41
#	0x43d001	runtime.selectgo+0x651										/usr/local/go/src/runtime/select.go:628
#	0xb39e52	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache+0x152			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1737
#	0xb84700	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions.func1+0x50	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:434

1244177082848213 4 @ 0x43d002 0xc03eaf 0x45cb41
#	0x43d001	runtime.selectgo+0x651									/usr/local/go/src/runtime/select.go:628
#	0xc03eae	github.com/influxdata/influxdb/cmd/influxd/run.(*Server).startServerReporting+0x14e	/go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:497

1054094715046223 488 @ 0x43d002 0xaa998c 0x45cb41
#	0x43d001	runtime.selectgo+0x651									/usr/local/go/src/runtime/select.go:628
#	0xaa998b	github.com/influxdata/influxdb/services/precreator.(*Service).runPrecreation+0x14b	/go/src/github.com/influxdata/influxdb/services/precreator/service.go:76

1054039248608588 292741 @ 0x43d002 0x9b6ee2 0x45cb41
#	0x43d001	runtime.selectgo+0x651										/usr/local/go/src/runtime/select.go:628
#	0x9b6ee1	github.com/influxdata/influxdb/services/continuous_querier.(*Service).backgroundLoop+0x1e1	/go/src/github.com/influxdata/influxdb/services/continuous_querier/service.go:215

1051795865692636 33018 @ 0x43d002 0xbe8dd4 0xbeb197 0x45cb41
#	0x43d001	runtime.selectgo+0x651								/usr/local/go/src/runtime/select.go:628
#	0xbe8dd3	github.com/influxdata/influxdb/services/subscriber.(*Service).run+0x2f3		/go/src/github.com/influxdata/influxdb/services/subscriber/service.go:239
#	0xbeb196	github.com/influxdata/influxdb/services/subscriber.(*Service).Open.func1+0x56	/go/src/github.com/influxdata/influxdb/services/subscriber/service.go:98

1037523568823209 29280 @ 0x43d002 0x98a9a0 0x45cb41
#	0x43d001	runtime.selectgo+0x651							/usr/local/go/src/runtime/select.go:628
#	0x98a99f	github.com/influxdata/influxdb/monitor.(*Monitor).storeStatistics+0xa0f	/go/src/github.com/influxdata/influxdb/monitor/service.go:432

1030332930728819 159 @ 0x43d002 0xaac7e6 0xaacae7 0x45cb41
#	0x43d001	runtime.selectgo+0x651								/usr/local/go/src/runtime/select.go:628
#	0xaac7e5	github.com/influxdata/influxdb/services/retention.(*Service).run+0x1c85		/go/src/github.com/influxdata/influxdb/services/retention/service.go:78
#	0xaacae6	github.com/influxdata/influxdb/services/retention.(*Service).Open.func1+0x56	/go/src/github.com/influxdata/influxdb/services/retention/service.go:51

751690876209887 7 @ 0x43d002 0xbe7c21 0xbeb217 0x45cb41
#	0x43d001	runtime.selectgo+0x651									/usr/local/go/src/runtime/select.go:628
#	0xbe7c20	github.com/influxdata/influxdb/services/subscriber.(*Service).waitForMetaUpdates+0x110	/go/src/github.com/influxdata/influxdb/services/subscriber/service.go:165
#	0xbeb216	github.com/influxdata/influxdb/services/subscriber.(*Service).Open.func2+0x56		/go/src/github.com/influxdata/influxdb/services/subscriber/service.go:102

160923935145483 133674 @ 0x43d002 0x98f6e8 0x98eff1 0xa88e2b 0xa9d1cc 0xa9b5f2 0x6c15e4 0xa9c01b 0x6c15e4 0xa9a7e5 0x6c15e4 0xa9b712 0x6c15e4 0xa9bb39 0x6c15e4 0xa9bc91 0x6c15e4 0xa9c59c 0x6c15e4 0x9c58cb 0xa8543d 0x6c42c4 0x6c04bd 0x45cb41
#	0x43d001	runtime.selectgo+0x651														/usr/local/go/src/runtime/select.go:628
#	0x98f6e7	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged+0x6c7						/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:345
#	0x98eff0	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePoints+0x90							/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:286
#	0xa88e2a	github.com/influxdata/influxdb/services/httpd.(*Handler).serveWrite+0x9fa							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:743
#	0xa9d1cb	github.com/influxdata/influxdb/services/httpd.(*Handler).(github.com/influxdata/influxdb/services/httpd.serveWrite)-fm+0x5b	/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:150
#	0xa9b5f1	github.com/influxdata/influxdb/services/httpd.authenticate.func1+0x7d1								/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1371
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9c01a	github.com/influxdata/influxdb/services/httpd.(*Handler).responseWriter.func1+0xaa						/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1548
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9a7e4	github.com/influxdata/influxdb/services/httpd.gzipFilter.func1+0x214								/go/src/github.com/influxdata/influxdb/services/httpd/gzip.go:39
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9b711	github.com/influxdata/influxdb/services/httpd.cors.func1+0x101									/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1493
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9bb38	github.com/influxdata/influxdb/services/httpd.requestID.func1+0x178								/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1524
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9bc90	github.com/influxdata/influxdb/services/httpd.(*Handler).logging.func1+0xe0							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1532
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9c59b	github.com/influxdata/influxdb/services/httpd.(*Handler).recovery.func1+0x14b							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1585
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0x9c58ca	github.com/bmizerany/pat.(*PatternServeMux).ServeHTTP+0x15a									/go/src/github.com/bmizerany/pat/mux.go:117
#	0xa8543c	github.com/influxdata/influxdb/services/httpd.(*Handler).ServeHTTP+0x24c							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:315
#	0x6c42c3	net/http.serverHandler.ServeHTTP+0xb3												/usr/local/go/src/net/http/server.go:2619
#	0x6c04bc	net/http.(*conn).serve+0x71c													/usr/local/go/src/net/http/server.go:1801

92082611943978 110426 @ 0x472b5e 0x473b5d 0xb8d92f 0xb76591 0xb759eb 0xb36f6d 0x93629a 0x94846b 0x98fa72 0x9a1bba 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed										/usr/local/go/src/sync/mutex.go:134
#	0x473b5c	sync.(*RWMutex).Lock+0x2c									/usr/local/go/src/sync/rwmutex.go:93
#	0xb8d92e	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).writeToLog.func1+0x6e			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:417
#	0xb76590	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).writeToLog+0x230				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:451
#	0xb759ea	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).WriteMulti+0x6a				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:315
#	0xb36f6c	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WritePoints+0xc1c			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1238
#	0x936299	github.com/influxdata/influxdb/tsdb.(*Shard).WritePoints+0x239					/go/src/github.com/influxdata/influxdb/tsdb/shard.go:491
#	0x94846a	github.com/influxdata/influxdb/tsdb.(*Store).WriteToShard+0xea					/go/src/github.com/influxdata/influxdb/tsdb/store.go:1211
#	0x98fa71	github.com/influxdata/influxdb/coordinator.(*PointsWriter).writeToShard+0x91			/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:365
#	0x9a1bb9	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged.func1+0x99	/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:311

35113403063630 69085 @ 0x40479b 0xb7665e 0xb759eb 0xb36f6d 0x93629a 0x94846b 0x98fa72 0x9a1bba 0x45cb41
#	0x40479a	runtime.chanrecv1+0x2a										/usr/local/go/src/runtime/chan.go:388
#	0xb7665d	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).writeToLog+0x2fd				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:460
#	0xb759ea	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).WriteMulti+0x6a				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:315
#	0xb36f6c	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WritePoints+0xc1c			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1238
#	0x936299	github.com/influxdata/influxdb/tsdb.(*Shard).WritePoints+0x239					/go/src/github.com/influxdata/influxdb/tsdb/shard.go:491
#	0x94846a	github.com/influxdata/influxdb/tsdb.(*Store).WriteToShard+0xea					/go/src/github.com/influxdata/influxdb/tsdb/store.go:1211
#	0x98fa71	github.com/influxdata/influxdb/coordinator.(*PointsWriter).writeToShard+0x91			/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:365
#	0x9a1bb9	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged.func1+0x99	/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:311

4448621253275 6341 @ 0x43d002 0x98f6e8 0xc0517d 0x987657 0x98aabf 0x45cb41
#	0x43d001	runtime.selectgo+0x651									/usr/local/go/src/runtime/select.go:628
#	0x98f6e7	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged+0x6c7	/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:345
#	0xc0517c	github.com/influxdata/influxdb/cmd/influxd/run.(*monitorPointsWriter).WritePoints+0x8c	/go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:614
#	0x987656	github.com/influxdata/influxdb/monitor.(*Monitor).writePoints+0x106			/go/src/github.com/influxdata/influxdb/monitor/service.go:152
#	0x98aabe	github.com/influxdata/influxdb/monitor.(*Monitor).storeStatistics+0xb2e			/go/src/github.com/influxdata/influxdb/monitor/service.go:465

2214185814299 35 @ 0x43d002 0xa9aa01 0x45cb41
#	0x43d001	runtime.selectgo+0x651								/usr/local/go/src/runtime/select.go:628
#	0xa9aa00	github.com/influxdata/influxdb/services/httpd.(*Handler).serveQuery.func2+0xd0	/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:474

2192897913608 29 @ 0x43d002 0x87f906 0x45cb41
#	0x43d001	runtime.selectgo+0x651							/usr/local/go/src/runtime/select.go:628
#	0x87f905	github.com/influxdata/influxdb/query.(*TaskManager).waitForQuery+0x165	/go/src/github.com/influxdata/influxdb/query/task_manager.go:259

2029836674661 2826 @ 0x473a79 0xb762b5 0xb39e9b 0xb84701 0x45cb41
#	0x473a78	sync.(*RWMutex).RLock+0x48									/usr/local/go/src/sync/rwmutex.go:50
#	0xb762b4	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).LastWriteTime+0x54			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:388
#	0xb39e9a	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache+0x19a			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1743
#	0xb84700	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions.func1+0x50	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:434

2025483615528 2858 @ 0x473a79 0xb762b5 0xb3a767 0xb8467b 0x45cb41
#	0x473a78	sync.(*RWMutex).RLock+0x48									/usr/local/go/src/sync/rwmutex.go:50
#	0xb762b4	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).LastWriteTime+0x54			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:388
#	0xb3a766	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compact+0x3a6				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1791
#	0xb8467a	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableLevelCompactions.func1+0x5a	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:355

224331090104 1328 @ 0x43d002 0x81f765 0x45cb41
#	0x43d001	runtime.selectgo+0x651								/usr/local/go/src/runtime/select.go:628
#	0x81f764	github.com/influxdata/influxdb/query.(*integerParallelIterator).monitor+0x1a4	/go/src/github.com/influxdata/influxdb/query/iterator.gen.go:3959

127985436841 11 @ 0x403a53 0x94fa70 0x45cb41
#	0x403a52	runtime.chansend1+0x42							/usr/local/go/src/runtime/chan.go:113
#	0x94fa6f	github.com/influxdata/influxdb/pkg/limiter.limiter.Fixed.Take+0x4f	/go/src/github.com/influxdata/influxdb/pkg/limiter/fixed.go:40
#	0x94fa6f	github.com/influxdata/influxdb/tsdb.(*Store).loadShards.func1+0x4f	/go/src/github.com/influxdata/influxdb/tsdb/store.go:265

72964305726 9 @ 0x40479b 0x94296a 0x9419db 0xc03456 0xbf918a 0xc065a5 0xc0631a 0x42d3b6 0x45cb41
#	0x40479a	runtime.chanrecv1+0x2a							/usr/local/go/src/runtime/chan.go:388
#	0x942969	github.com/influxdata/influxdb/tsdb.(*Store).loadShards+0xe09		/go/src/github.com/influxdata/influxdb/tsdb/store.go:316
#	0x9419da	github.com/influxdata/influxdb/tsdb.(*Store).Open+0x28a			/go/src/github.com/influxdata/influxdb/tsdb/store.go:160
#	0xc03455	github.com/influxdata/influxdb/cmd/influxd/run.(*Server).Open+0xa55	/go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:418
#	0xbf9189	github.com/influxdata/influxdb/cmd/influxd/run.(*Command).Run+0xd99	/go/src/github.com/influxdata/influxdb/cmd/influxd/run/command.go:140
#	0xc065a4	main.(*Main).Run+0x1d4							/go/src/github.com/influxdata/influxdb/cmd/influxd/main.go:81
#	0xc06319	main.main+0x169								/go/src/github.com/influxdata/influxdb/cmd/influxd/main.go:45
#	0x42d3b5	runtime.main+0x225							/usr/local/go/src/runtime/proc.go:195

68756918342 58 @ 0x473a79 0x93dde1 0xb301a0 0x937a78 0x936189 0x94846b 0x98fa72 0x9a1bba 0x45cb41
#	0x473a78	sync.(*RWMutex).RLock+0x48									/usr/local/go/src/sync/rwmutex.go:50
#	0x93dde0	github.com/influxdata/influxdb/tsdb.(*MeasurementFieldSet).CreateFieldsIfNotExists+0x30		/go/src/github.com/influxdata/influxdb/tsdb/shard.go:1492
#	0xb3019f	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).MeasurementFields+0x4f		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:516
#	0x937a77	github.com/influxdata/influxdb/tsdb.(*Shard).validateSeriesAndFields+0x1597			/go/src/github.com/influxdata/influxdb/tsdb/shard.go:592
#	0x936188	github.com/influxdata/influxdb/tsdb.(*Shard).WritePoints+0x128					/go/src/github.com/influxdata/influxdb/tsdb/shard.go:474
#	0x94846a	github.com/influxdata/influxdb/tsdb.(*Store).WriteToShard+0xea					/go/src/github.com/influxdata/influxdb/tsdb/store.go:1211
#	0x98fa71	github.com/influxdata/influxdb/coordinator.(*PointsWriter).writeToShard+0x91			/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:365
#	0x9a1bb9	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged.func1+0x99	/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:311

36277212845 17 @ 0x4047db 0xa85eb6 0xa9d15c 0xa9b5f2 0x6c15e4 0xa9c01b 0x6c15e4 0xa9a7e5 0x6c15e4 0xa9b712 0x6c15e4 0xa9bb39 0x6c15e4 0xa9bc91 0x6c15e4 0xa9c59c 0x6c15e4 0x9c58cb 0xa8543d 0x6c42c4 0x6c04bd 0x45cb41
#	0x4047da	runtime.chanrecv2+0x2a														/usr/local/go/src/runtime/chan.go:393
#	0xa85eb5	github.com/influxdata/influxdb/services/httpd.(*Handler).serveQuery+0x895							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:510
#	0xa9d15b	github.com/influxdata/influxdb/services/httpd.(*Handler).(github.com/influxdata/influxdb/services/httpd.serveQuery)-fm+0x5b	/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:138
#	0xa9b5f1	github.com/influxdata/influxdb/services/httpd.authenticate.func1+0x7d1								/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1371
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9c01a	github.com/influxdata/influxdb/services/httpd.(*Handler).responseWriter.func1+0xaa						/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1548
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9a7e4	github.com/influxdata/influxdb/services/httpd.gzipFilter.func1+0x214								/go/src/github.com/influxdata/influxdb/services/httpd/gzip.go:39
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9b711	github.com/influxdata/influxdb/services/httpd.cors.func1+0x101									/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1493
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9bb38	github.com/influxdata/influxdb/services/httpd.requestID.func1+0x178								/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1524
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9bc90	github.com/influxdata/influxdb/services/httpd.(*Handler).logging.func1+0xe0							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1532
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0xa9c59b	github.com/influxdata/influxdb/services/httpd.(*Handler).recovery.func1+0x14b							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1585
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43												/usr/local/go/src/net/http/server.go:1918
#	0x9c58ca	github.com/bmizerany/pat.(*PatternServeMux).ServeHTTP+0x15a									/go/src/github.com/bmizerany/pat/mux.go:117
#	0xa8543c	github.com/influxdata/influxdb/services/httpd.(*Handler).ServeHTTP+0x24c							/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:315
#	0x6c42c3	net/http.serverHandler.ServeHTTP+0xb3												/usr/local/go/src/net/http/server.go:2619
#	0x6c04bc	net/http.(*conn).serve+0x71c													/usr/local/go/src/net/http/server.go:1801

22417259886 1 @ 0x43d002 0x989ea4 0x98a341 0x45cb41
#	0x43d001	runtime.selectgo+0x651								/usr/local/go/src/runtime/select.go:628
#	0x989ea3	github.com/influxdata/influxdb/monitor.(*Monitor).waitUntilInterval+0x1e3	/go/src/github.com/influxdata/influxdb/monitor/service.go:409
#	0x98a340	github.com/influxdata/influxdb/monitor.(*Monitor).storeStatistics+0x3b0		/go/src/github.com/influxdata/influxdb/monitor/service.go:424

5584976171 14 @ 0x473f12 0xb3fd88 0xb88061 0xb3ed7c 0xb3e2b9 0x938c2d 0x93bea0 0x956ff5 0x991afe 0x887999 0x86f7d5 0x886880 0x86d2a3 0x86beff 0x885b90 0x86b962 0x869a20 0x86914a 0x868ee8 0x998be6 0x997b2f 0x995116 0x866b28 0x45cb41
#	0x473f11	sync.(*WaitGroup).Wait+0x71									/usr/local/go/src/sync/waitgroup.go:131
#	0xb3fd87	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).createTagSetIterators+0x567		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2382
#	0xb88060	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).createCallIterator.func1+0x170	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2223
#	0xb3ed7b	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).createCallIterator+0x3eb		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2248
#	0xb3e2b8	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).CreateIterator+0x3d8			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2156
#	0x938c2c	github.com/influxdata/influxdb/tsdb.(*Shard).CreateIterator+0x13c				/go/src/github.com/influxdata/influxdb/tsdb/shard.go:809
#	0x93be9f	github.com/influxdata/influxdb/tsdb.Shards.CreateIterator+0x12f					/go/src/github.com/influxdata/influxdb/tsdb/shard.go:1212
#	0x956ff4	github.com/influxdata/influxdb/tsdb.(*Shards).CreateIterator+0xb4				<autogenerated>:1
#	0x991afd	github.com/influxdata/influxdb/coordinator.(*LocalShardMapping).CreateIterator+0x46d		/go/src/github.com/influxdata/influxdb/coordinator/shard_mapper.go:208
#	0x887998	github.com/influxdata/influxdb/query.(*exprIteratorBuilder).callIterator.func1+0x138		/go/src/github.com/influxdata/influxdb/query/select.go:814
#	0x86f7d4	github.com/influxdata/influxdb/query.(*exprIteratorBuilder).callIterator+0xd4			/go/src/github.com/influxdata/influxdb/query/select.go:838
#	0x88687f	github.com/influxdata/influxdb/query.(*exprIteratorBuilder).buildCallIterator.func1+0xef	/go/src/github.com/influxdata/influxdb/query/select.go:712
#	0x86d2a2	github.com/influxdata/influxdb/query.(*exprIteratorBuilder).buildCallIterator+0x1052		/go/src/github.com/influxdata/influxdb/query/select.go:756
#	0x86befe	github.com/influxdata/influxdb/query.buildExprIterator+0x46e					/go/src/github.com/influxdata/influxdb/query/select.go:429
#	0x885b8f	github.com/influxdata/influxdb/query.buildFieldIterators.func1+0x22f				/go/src/github.com/influxdata/influxdb/query/select.go:359
#	0x86b961	github.com/influxdata/influxdb/query.buildFieldIterators+0x171					/go/src/github.com/influxdata/influxdb/query/select.go:406
#	0x869a1f	github.com/influxdata/influxdb/query.buildIterators+0x75f					/go/src/github.com/influxdata/influxdb/query/select.go:194
#	0x869149	github.com/influxdata/influxdb/query.(*preparedStatement).Select+0x159				/go/src/github.com/influxdata/influxdb/query/select.go:109
#	0x868ee7	github.com/influxdata/influxdb/query.Select+0x147						/go/src/github.com/influxdata/influxdb/query/select.go:90
#	0x998be5	github.com/influxdata/influxdb/coordinator.(*StatementExecutor).createIterators+0x105		/go/src/github.com/influxdata/influxdb/coordinator/statement_executor.go:652
#	0x997b2e	github.com/influxdata/influxdb/coordinator.(*StatementExecutor).executeSelectStatement+0x8e	/go/src/github.com/influxdata/influxdb/coordinator/statement_executor.go:548
#	0x995115	github.com/influxdata/influxdb/coordinator.(*StatementExecutor).ExecuteStatement+0x29a5		/go/src/github.com/influxdata/influxdb/coordinator/statement_executor.go:62
#	0x866b27	github.com/influxdata/influxdb/query.(*QueryExecutor).executeQuery+0xae7			/go/src/github.com/influxdata/influxdb/query/query_executor.go:389

2780963030 172 @ 0x472b5e 0x5271cc 0x52770a 0xa9bd67 0x6c15e4 0xa9c59c 0x6c15e4 0x9c58cb 0xa8543d 0x6c42c4 0x6c04bd 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed								/usr/local/go/src/sync/mutex.go:134
#	0x5271cb	log.(*Logger).Output+0x7b							/usr/local/go/src/log/log.go:153
#	0x527709	log.(*Logger).Println+0x69							/usr/local/go/src/log/log.go:188
#	0xa9bd66	github.com/influxdata/influxdb/services/httpd.(*Handler).logging.func1+0x1b6	/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1533
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43						/usr/local/go/src/net/http/server.go:1918
#	0xa9c59b	github.com/influxdata/influxdb/services/httpd.(*Handler).recovery.func1+0x14b	/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1585
#	0x6c15e3	net/http.HandlerFunc.ServeHTTP+0x43						/usr/local/go/src/net/http/server.go:1918
#	0x9c58ca	github.com/bmizerany/pat.(*PatternServeMux).ServeHTTP+0x15a			/go/src/github.com/bmizerany/pat/mux.go:117
#	0xa8543c	github.com/influxdata/influxdb/services/httpd.(*Handler).ServeHTTP+0x24c	/go/src/github.com/influxdata/influxdb/services/httpd/handler.go:315
#	0x6c42c3	net/http.serverHandler.ServeHTTP+0xb3						/usr/local/go/src/net/http/server.go:2619
#	0x6c04bc	net/http.(*conn).serve+0x71c							/usr/local/go/src/net/http/server.go:1801

2684136930 1 @ 0x40479b 0xb4e17c 0xb32b17 0x94ec2e 0x93571f 0x9501a4 0x45cb41
#	0x40479a	runtime.chanrecv1+0x2a							/usr/local/go/src/runtime/chan.go:388
#	0xb4e17b	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*FileStore).Open+0x7eb	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/file_store.go:501
#	0xb32b16	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).Open+0x256	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:668
#	0x94ec2d	github.com/influxdata/influxdb/tsdb.(*Shard).Open.func1+0x40d		/go/src/github.com/influxdata/influxdb/tsdb/shard.go:320
#	0x93571e	github.com/influxdata/influxdb/tsdb.(*Shard).Open+0x2e			/go/src/github.com/influxdata/influxdb/tsdb/shard.go:331
#	0x9501a3	github.com/influxdata/influxdb/tsdb.(*Store).loadShards.func1+0x783	/go/src/github.com/influxdata/influxdb/tsdb/store.go:299

2613804474 1 @ 0x473a79 0xb50eac 0xb1806c 0xb142bc 0xb3a694 0xb8467b 0x45cb41
#	0x473a78	sync.(*RWMutex).RLock+0x48									/usr/local/go/src/sync/rwmutex.go:50
#	0xb50eab	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*FileStore).LastModified+0x4b			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/file_store.go:788
#	0xb1806b	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*DefaultPlanner).findGenerations+0x87b		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:591
#	0xb142bb	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*DefaultPlanner).PlanLevel+0x8b		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:210
#	0xb3a693	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compact+0x2d3				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1788
#	0xb8467a	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableLevelCompactions.func1+0x5a	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:355

2414902350 2 @ 0x43d002 0x6d04ff 0x6cc7b6 0x67c489 0x67c11d 0x67d7bd 0xbf6d22 0x45cb41
#	0x43d001	runtime.selectgo+0x651						/usr/local/go/src/runtime/select.go:628
#	0x6d04fe	net/http.(*Transport).getConn+0x5be				/usr/local/go/src/net/http/transport.go:948
#	0x6cc7b5	net/http.(*Transport).RoundTrip+0x6a5				/usr/local/go/src/net/http/transport.go:400
#	0x67c488	net/http.send+0x1a8						/usr/local/go/src/net/http/client.go:249
#	0x67c11c	net/http.(*Client).send+0xfc					/usr/local/go/src/net/http/client.go:173
#	0x67d7bc	net/http.(*Client).Do+0x28c					/usr/local/go/src/net/http/client.go:602
#	0xbf6d21	github.com/influxdata/usage-client/v1.(*Client).Save+0x451	/go/src/github.com/influxdata/usage-client/v1/client.go:77

1993111493 4 @ 0x40479b 0xb18e77 0xb395e9 0xb392ae 0xb3a01c 0xb84701 0x45cb41
#	0x40479a	runtime.chanrecv1+0x2a										/usr/local/go/src/runtime/chan.go:388
#	0xb18e76	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).WriteSnapshot+0x386		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:820
#	0xb395e8	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).writeSnapshotAndCommit+0xa8		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1703
#	0xb392ad	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WriteSnapshot+0x42d			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1673
#	0xb3a01b	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache+0x31b			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1746
#	0xb84700	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions.func1+0x50	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:434

1528101802 10 @ 0x472b5e 0x473b5d 0xb8d7e4 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed								/usr/local/go/src/sync/mutex.go:134
#	0x473b5c	sync.(*RWMutex).Lock+0x2c							/usr/local/go/src/sync/rwmutex.go:93
#	0xb8d7e3	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).scheduleSync.func1+0x163	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:280

1057004970 1 @ 0x4047db 0xb6c9f4 0xb0a74b 0xb39051 0xb3a01c 0xb84701 0x45cb41
#	0x4047da	runtime.chanrecv2+0x2a										/usr/local/go/src/runtime/chan.go:393
#	0xb6c9f3	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*ring).apply+0x163				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/ring.go:176
#	0xb0a74a	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Cache).Deduplicate+0x7a			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/cache.go:430
#	0xb39050	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WriteSnapshot+0x1d0			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1668
#	0xb3a01b	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache+0x31b			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1746
#	0xb84700	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions.func1+0x50	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:434

923592212 1 @ 0x40479b 0xb7665e 0xb759eb 0xb36f6d 0x93629a 0x94846b 0x98fb1f 0x9a1bba 0x45cb41
#	0x40479a	runtime.chanrecv1+0x2a										/usr/local/go/src/runtime/chan.go:388
#	0xb7665d	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).writeToLog+0x2fd				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:460
#	0xb759ea	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).WriteMulti+0x6a				/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:315
#	0xb36f6c	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WritePoints+0xc1c			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1238
#	0x936299	github.com/influxdata/influxdb/tsdb.(*Shard).WritePoints+0x239					/go/src/github.com/influxdata/influxdb/tsdb/shard.go:491
#	0x94846a	github.com/influxdata/influxdb/tsdb.(*Store).WriteToShard+0xea					/go/src/github.com/influxdata/influxdb/tsdb/store.go:1211
#	0x98fb1e	github.com/influxdata/influxdb/coordinator.(*PointsWriter).writeToShard+0x13e			/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:388
#	0x9a1bb9	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged.func1+0x99	/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:311

848860478 1 @ 0x473b9e 0xb8771d 0xb38fc7 0xb3a01c 0xb84701 0x45cb41
#	0x473b9d	sync.(*RWMutex).Lock+0x6d									/usr/local/go/src/sync/rwmutex.go:98
#	0xb8771c	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WriteSnapshot.func2+0x6c		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1635
#	0xb38fc6	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WriteSnapshot+0x146			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1653
#	0xb3a01b	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache+0x31b			/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1746
#	0xb84700	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions.func1+0x50	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:434

617863816 1 @ 0x472b5e 0x473b5d 0x87eb9e 0x8661a5 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed								/usr/local/go/src/sync/mutex.go:134
#	0x473b5c	sync.(*RWMutex).Lock+0x2c							/usr/local/go/src/sync/rwmutex.go:93
#	0x87eb9d	github.com/influxdata/influxdb/query.(*TaskManager).AttachQuery+0x7d		/go/src/github.com/influxdata/influxdb/query/task_manager.go:154
#	0x8661a4	github.com/influxdata/influxdb/query.(*QueryExecutor).executeQuery+0x164	/go/src/github.com/influxdata/influxdb/query/query_executor.go:301

547975328 1 @ 0x40479b 0x6d1ac4 0x6dc548 0x45cb41
#	0x40479a	runtime.chanrecv1+0x2a				/usr/local/go/src/runtime/chan.go:388
#	0x6d1ac3	net/http.(*Transport).dialConn+0xdf3		/usr/local/go/src/net/http/transport.go:1157
#	0x6dc547	net/http.(*Transport).getConn.func4+0x77	/usr/local/go/src/net/http/transport.go:943

298170055 3 @ 0x43d002 0x8b46ca 0x8b535d 0x8b5a07 0x4ef6de 0x4ef999 0xb7ea10 0xb1ac65 0xb1a4d9 0xb81631 0x45cb41
#	0x43d001	runtime.selectgo+0x651									/usr/local/go/src/runtime/select.go:628
#	0x8b46c9	golang.org/x/time/rate.(*Limiter).waitN+0x2f9						/go/src/golang.org/x/time/rate/rate.go:259
#	0x8b535c	golang.org/x/time/rate.(*Limiter).WaitN+0x6c						/go/src/golang.org/x/time/rate/rate_go17.go:20
#	0x8b5a06	github.com/influxdata/influxdb/pkg/limiter.(*Writer).Write+0xb6				/go/src/github.com/influxdata/influxdb/pkg/limiter/writer.go:61
#	0x4ef6dd	bufio.(*Writer).Flush+0x7d								/usr/local/go/src/bufio/bufio.go:567
#	0x4ef998	bufio.(*Writer).Write+0x108								/usr/local/go/src/bufio/bufio.go:603
#	0xb7ea0f	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*tsmWriter).WriteBlock+0x15f		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/writer.go:679
#	0xb1ac64	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).write+0x264		/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1099
#	0xb1a4d8	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).writeNewFiles+0x258	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:994
#	0xb81630	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).WriteSnapshot.func1+0xc0	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:811

287561304 11 @ 0x472b5e 0x473b5d 0xab6f7b 0xab72ed 0xb38d1a 0x936bbe 0x936189 0x94846b 0x98fa72 0x9a1bba 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed										/usr/local/go/src/sync/mutex.go:134
#	0x473b5c	sync.(*RWMutex).Lock+0x2c									/usr/local/go/src/sync/rwmutex.go:93
#	0xab6f7a	github.com/influxdata/influxdb/tsdb/index/inmem.(*Index).assignExistingSeries+0x29a		/go/src/github.com/influxdata/influxdb/tsdb/index/inmem/inmem.go:1034
#	0xab72ec	github.com/influxdata/influxdb/tsdb/index/inmem.(*ShardIndex).CreateSeriesListIfNotExists+0xcc	/go/src/github.com/influxdata/influxdb/tsdb/index/inmem/inmem.go:1082
#	0xb38d19	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).CreateSeriesListIfNotExists+0xa9	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1607
#	0x936bbd	github.com/influxdata/influxdb/tsdb.(*Shard).validateSeriesAndFields+0x6dd			/go/src/github.com/influxdata/influxdb/tsdb/shard.go:542
#	0x936188	github.com/influxdata/influxdb/tsdb.(*Shard).WritePoints+0x128					/go/src/github.com/influxdata/influxdb/tsdb/shard.go:474
#	0x94846a	github.com/influxdata/influxdb/tsdb.(*Store).WriteToShard+0xea					/go/src/github.com/influxdata/influxdb/tsdb/store.go:1211
#	0x98fa71	github.com/influxdata/influxdb/coordinator.(*PointsWriter).writeToShard+0x91			/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:365
#	0x9a1bb9	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged.func1+0x99	/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:311

224073111 1 @ 0x472b5e 0x6feff1 0x6f0576 0x6f21f7 0x70909f 0x866f23 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed								/usr/local/go/src/sync/mutex.go:134
#	0x6feff0	go.uber.org/zap/zapcore.(*lockedWriteSyncer).Write+0x30				/go/src/go.uber.org/zap/zapcore/write_syncer.go:65
#	0x6f0575	go.uber.org/zap/zapcore.(*ioCore).Write+0x105					/go/src/go.uber.org/zap/zapcore/core.go:90
#	0x6f21f6	go.uber.org/zap/zapcore.(*CheckedEntry).Write+0xe6				/go/src/go.uber.org/zap/zapcore/entry.go:215
#	0x70909e	go.uber.org/zap.(*Logger).Info+0x7e						/go/src/go.uber.org/zap/logger.go:187
#	0x866f22	github.com/influxdata/influxdb/query.(*QueryExecutor).executeQuery+0xee2	/go/src/github.com/influxdata/influxdb/query/query_executor.go:385

42761540 2 @ 0x472b5e 0x473337 0x47322a 0x6b5171 0x6b5394 0x6bc4ac 0x6c02ae 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed			/usr/local/go/src/sync/mutex.go:134
#	0x473336	sync.(*Pool).getSlow+0xc6		/usr/local/go/src/sync/pool.go:165
#	0x473229	sync.(*Pool).Get+0x139			/usr/local/go/src/sync/pool.go:141
#	0x6b5170	net/http.newTextprotoReader+0x30	/usr/local/go/src/net/http/request.go:895
#	0x6b5393	net/http.readRequest+0x63		/usr/local/go/src/net/http/request.go:920
#	0x6bc4ab	net/http.(*conn).readRequest+0x17b	/usr/local/go/src/net/http/server.go:933
#	0x6c02ad	net/http.(*conn).serve+0x50d		/usr/local/go/src/net/http/server.go:1739

34697385 3 @ 0x473b9e 0xb8d7e4 0x45cb41
#	0x473b9d	sync.(*RWMutex).Lock+0x6d							/usr/local/go/src/sync/rwmutex.go:98
#	0xb8d7e3	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).scheduleSync.func1+0x163	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:280

24553421 2 @ 0x472b5e 0x6c517d 0x6bfb9c 0x6dbe34 0x6c06a4 0x45cb41
#	0x472b5d	sync.(*Mutex).Lock+0xed			/usr/local/go/src/sync/mutex.go:134
#	0x6c517c	net/http.(*Server).trackConn+0x3c	/usr/local/go/src/net/http/server.go:2786
#	0x6bfb9b	net/http.(*conn).setState+0xcb		/usr/local/go/src/net/http/server.go:1640
#	0x6dbe33	net/http.(*conn).serve.func1+0x243	/usr/local/go/src/net/http/server.go:1702
#	0x6c06a3	net/http.(*conn).serve+0x903		/usr/local/go/src/net/http/server.go:1811

8894856 1 @ 0x473a79 0xab6d11 0xab72ed 0xb38d1a 0x936bbe 0x936189 0x94846b 0x98fa72 0x9a1bba 0x45cb41
#	0x473a78	sync.(*RWMutex).RLock+0x48									/usr/local/go/src/sync/rwmutex.go:50
#	0xab6d10	github.com/influxdata/influxdb/tsdb/index/inmem.(*Index).assignExistingSeries+0x30		/go/src/github.com/influxdata/influxdb/tsdb/index/inmem/inmem.go:1023
#	0xab72ec	github.com/influxdata/influxdb/tsdb/index/inmem.(*ShardIndex).CreateSeriesListIfNotExists+0xcc	/go/src/github.com/influxdata/influxdb/tsdb/index/inmem/inmem.go:1082
#	0xb38d19	github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).CreateSeriesListIfNotExists+0xa9	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1607
#	0x936bbd	github.com/influxdata/influxdb/tsdb.(*Shard).validateSeriesAndFields+0x6dd			/go/src/github.com/influxdata/influxdb/tsdb/shard.go:542
#	0x936188	github.com/influxdata/influxdb/tsdb.(*Shard).WritePoints+0x128					/go/src/github.com/influxdata/influxdb/tsdb/shard.go:474
#	0x94846a	github.com/influxdata/influxdb/tsdb.(*Store).WriteToShard+0xea					/go/src/github.com/influxdata/influxdb/tsdb/store.go:1211
#	0x98fa71	github.com/influxdata/influxdb/coordinator.(*PointsWriter).writeToShard+0x91			/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:365
#	0x9a1bb9	github.com/influxdata/influxdb/coordinator.(*PointsWriter).WritePointsPrivileged.func1+0x99	/go/src/github.com/influxdata/influxdb/coordinator/points_writer.go:311

1696503 8 @ 0x40479b 0x94607b 0x94c1b1 0x45cb41
#	0x40479a	runtime.chanrecv1+0x2a							/usr/local/go/src/runtime/chan.go:388
#	0x94607a	github.com/influxdata/influxdb/tsdb.(*Store).walkShards+0x10a		/go/src/github.com/influxdata/influxdb/tsdb/store.go:827
#	0x94c1b0	github.com/influxdata/influxdb/tsdb.(*Store).monitorShards+0x390	/go/src/github.com/influxdata/influxdb/tsdb/store.go:1724

1636242 2 @ 0x470cb0 0x6baf36 0x6bf668 0x6c04fd 0x45cb41
#	0x470caf	sync.(*Cond).Wait+0x7f				/usr/local/go/src/sync/cond.go:56
#	0x6baf35	net/http.(*connReader).abortPendingRead+0xb5	/usr/local/go/src/net/http/server.go:690
#	0x6bf667	net/http.(*response).finishRequest+0x97		/usr/local/go/src/net/http/server.go:1518
#	0x6c04fc	net/http.(*conn).serve+0x75c			/usr/local/go/src/net/http/server.go:1806

50372 1 @ 0x403a53 0x95128a 0x45cb41
#	0x403a52	runtime.chansend1+0x42							/usr/local/go/src/runtime/chan.go:113
#	0x951289	github.com/influxdata/influxdb/tsdb.(*Store).walkShards.func1+0x189	/go/src/github.com/influxdata/influxdb/tsdb/store.go:821


@skburgart
Copy link

This issue is still happening in 1.5.2.

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

10 participants