You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collect information from the environment at runtime to print before backtraces #39
So, after thinking about it for a bit, I believe we should also print the full version number at startup. That way if we have a non-crashing bug, we can try to reproduce it with the same version of RethinkDB as the user. This is less important now, but will become more important as versions diverge more significantly.
Ideally, I think rethinkdb --version should print not only the version number, but also some details about the platform RethinkDB is installed on (Kernel v, FS, etc.).
I agree that we should be able to print that information. I disagree about
putting it under --version. --version has a pretty well understood meaning
in the linux world and I don't think it includes this. It should be a
different command.
Ideally, I think rethinkdb --version should print not only the version
number, but also some details about the platform RethinkDB is installed on
(Kernel v, FS, etc.).
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-10296559.
The first part of this is done (we now print out version strings before backtraces, along with the compiler used to compile it).
It sounds like we also want to make RethinkDB collect some data about its environment at startup. Let's try to make a list of what we want to see before a backtrace:
However, before we do this we should be aware that this ought to be portable. For example, /etc/issue is meaningless in rpm (I think), so on that platform, we should call something else.
We had some code at one point that collected disk information that might be
a good place to start.
On Monday, November 12, 2012, Michael Lucy wrote:
The first part of this is done (we now print out version strings before
backtraces, along with the compiler used to compile it).
It sounds like we also want to make RethinkDB collect some data about its
environment at startup. Let's try to make a list of what we want to see
before a backtrace:
The version of RethinkDB
The output of uname -a
The output of df -T
Is there anything else?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-10316645.
I think the value of printing mount info is very questionable. It turns the message into a wall of text, and I don't see what useful information we can extract out of it.
cat /etc/issue isn't portable -- for example, we'll be adding rpm support soon and beyond. This needs to be abstracted (if it isn't already) so it can work on all systems or at least degrade to "can't determine the distro version".
uname -a is better than /proc/version -- the former exists everywhere, whereas the latter does not.
At first I was going to say that /proc/version is basically universal, but then I remembered that we're planning an OS X port, which means no /proc for us. (Actually, don't we use /proc in the stats collection, too?)
I'm hesitant to start forking processes while we're crashing. Why don't we just print the version number when we crash, like we do now, and fold this into the bug-report functionality?
Also, this sort of thing should really be encapsulated in a shell script rather than in C++ code.
Closing and merging into Issue #41, unless anybody objects.
Activity
mlucy commentedon Nov 12, 2012
So, after thinking about it for a bit, I believe we should also print the full version number at startup. That way if we have a non-crashing bug, we can try to reproduce it with the same version of RethinkDB as the user. This is less important now, but will become more important as versions diverge more significantly.
coffeemug commentedon Nov 12, 2012
We already have
rethinkdb --version. We just need to print that by default.coffeemug commentedon Nov 12, 2012
Update: it looks like
rethinkdb --versionimplemented in the PPA returns the string 'rethinkdb' . We should probably fix that :)al3xandru commentedon Nov 12, 2012
Ideally, I think rethinkdb --version should print not only the version number, but also some details about the platform RethinkDB is installed on (Kernel v, FS, etc.).
jdoliner commentedon Nov 12, 2012
I agree that we should be able to print that information. I disagree about
putting it under --version. --version has a pretty well understood meaning
in the linux world and I don't think it includes this. It should be a
different command.
On Mon, Nov 12, 2012 at 9:34 AM, Alex Popescu [email protected]:
coffeemug commentedon Nov 12, 2012
rethinkdb --arch? orrethinkdb --platform?jdoliner commentedon Nov 12, 2012
I like platform best.
mlucy commentedon Nov 13, 2012
The first part of this is done (we now print out version strings before backtraces, along with the compiler used to compile it).
It sounds like we also want to make RethinkDB collect some data about its environment at startup. Let's try to make a list of what we want to see before a backtrace:
uname -adf -TIs there anything else?
mglukhovsky commentedon Nov 13, 2012
If journaling or other mount options matter, then
df -Twon't show those-- the output ofmountwill.coffeemug commentedon Nov 13, 2012
cat /etc/issueHowever, before we do this we should be aware that this ought to be portable. For example,
/etc/issueis meaningless in rpm (I think), so on that platform, we should call something else.jdoliner commentedon Nov 13, 2012
We had some code at one point that collected disk information that might be
a good place to start.
On Monday, November 12, 2012, Michael Lucy wrote:
mlucy commentedon Nov 14, 2012
Alright, I have a code review (#68) out for collecting runtime information. Here's what it looks like now when someone crashes:
coffeemug commentedon Nov 14, 2012
cat /etc/issueisn't portable -- for example, we'll be adding rpm support soon and beyond. This needs to be abstracted (if it isn't already) so it can work on all systems or at least degrade to "can't determine the distro version".uname -ais better than/proc/version-- the former exists everywhere, whereas the latter does not.mlucy commentedon Nov 15, 2012
At first I was going to say that /proc/version is basically universal, but then I remembered that we're planning an OS X port, which means no /proc for us. (Actually, don't we use /proc in the stats collection, too?)
I'm hesitant to start forking processes while we're crashing. Why don't we just print the version number when we crash, like we do now, and fold this into the bug-report functionality?
Also, this sort of thing should really be encapsulated in a shell script rather than in C++ code.
Closing and merging into Issue #41, unless anybody objects.
coffeemug commentedon Nov 15, 2012
Makes sense to me.
chore(tick rethinkdb#39): commit INT-07 worker output (test/vector_ft…
chore(tick rethinkdb#39): board update — 14-point audit clear, INT-07…
chore: T45 board update — 2 NEVER-DONE docs fixed, DuckBrain fabricat…
chore(tick rethinkdb#39): commit INT-07 worker output (test/vector_ft…
chore(tick rethinkdb#39): board update — 14-point audit clear, INT-07…
chore: T45 board update — 2 NEVER-DONE docs fixed, DuckBrain fabricat…