Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSIGSEGV in storage/metric tests #135
Comments
This comment has been minimized.
This comment has been minimized.
|
This has been bugging us for a while. I can never reproduce it if I just run the single crashing test: go test ./... -test.run=TestGetFingerprintsForLabelSet But if I run all tests, it crashes in this one. So I suspect that it has something to do with storage not being correctly closed or some kind of side-effects between tests. Need to dig deeper. |
This comment has been minimized.
This comment has been minimized.
|
I think I've figured out what's causing this! tieredStorage.Close() calls Note: this also means that calling |
This comment has been minimized.
This comment has been minimized.
|
Let me just say this: All of the extra usage coverage you are providing is A side note: The tiered storage code is immature and was the result of an 2013/4/15 Bernerd Schaefer notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
Hm, from what I can see, Drain() blocks until the storage is fully drained ( On Mon, Apr 15, 2013 at 10:37 AM, Bernerd Schaefer <notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
@juliusv |
This comment has been minimized.
This comment has been minimized.
|
Ohh... you're right, my eyes didn't even see the for loop, but of course it So I'll just change it to return. On Mon, Apr 15, 2013 at 12:31 PM, Bernerd Schaefer <notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
Damn, "break" -> "return" just makes the tests hang forever. Trying to find On Mon, Apr 15, 2013 at 12:43 PM, Julius Volz julius@soundcloud.com wrote:
|
juliusv
referenced this issue
Apr 15, 2013
Merged
Stop serving tiered storage after draining it. #143
This comment has been minimized.
This comment has been minimized.
|
Found the problem, where we called both Close() (indirectly) and then On Mon, Apr 15, 2013 at 1:18 PM, Julius Volz julius@soundcloud.com wrote:
|
juliusv
closed this
Apr 17, 2013
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 25, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
bernerdschaefer commentedApr 12, 2013
It's intermittent, but I do see this every few times I run
makein the root directory, orgo testfromstorage/metric. Here's the trace: https://gist.github.com/bernerdschaefer/5371918