You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2008/07/02 18:31:45 UTC
[jira] Created: (ZOOKEEPER-64) We should log system env information
when intializing client/server
We should log system env information when intializing client/server
-------------------------------------------------------------------
Key: ZOOKEEPER-64
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
Project: Zookeeper
Issue Type: Improvement
Reporter: Patrick Hunt
Assignee: Patrick Hunt
Fix For: 3.0.0
We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-64) We should log system env information
when intializing client/server
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-64:
----------------------------------
Attachment: ZOOKEEPER-64.patch
Added logging for the variables listed in the previous comments.
All logging is at INFO level.
In java I added to the client and server, logged once during class loading.
In C I added to the zookeeper_init method, logged once for each call of init.
Notice to reviewers: notice that each data entry is logged with it's own log call, rather than logged as a single call (resulting in very long, hard to read, line). Also didn't want to output a single log with carriage returns as that can be difficult to parse/grep. I think this is the optimum approach.
I also updated the server to add a new "envi" command. Allows querying of same data from the command port. Also notice that the docs have been updated as well.
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
> Attachments: ZOOKEEPER-64.patch
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-64) We should log system env information
when intializing client/server
Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated ZOOKEEPER-64:
-----------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I just committed this to revision 722308.
thanks pat.
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
> Attachments: ZOOKEEPER-64.patch
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-64) We should log system env
information when intializing client/server
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646741#action_12646741 ]
Patrick Hunt commented on ZOOKEEPER-64:
---------------------------------------
On client or server regardless of runtime/architecture:
zookeeper.version version number
host.name name of host
os.name Operating system name
os.arch Operating system architecture
os.version Operating system version
user.name User's account name
user.home User's home directory
user.dir User's current working directory
In addition I'm planning to log the following from java client/server code:
java.version Java Runtime Environment version
java.vendor Java Runtime Environment vendor
java.home Java installation directory
java.class.path Java class path
java.library.path List of paths to search when loading libraries
java.io.tmpdir Default temp file path
java.compiler Name of JIT compiler to use
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-64) We should log system env information
when intializing client/server
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-64:
----------------------------------
Fix Version/s: (was: 3.0.0)
3.1.0
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-64) We should log system env
information when intializing client/server
Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652204#action_12652204 ]
Mahadev konar commented on ZOOKEEPER-64:
----------------------------------------
ok i finally verified that the tests are running fine.. the problem was that my path has old java in it and the server would not come up since it was compiled with java 6. Its really hard to debug the c tests though...
+1 for this patch... i will go ahead and commit this.
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
> Attachments: ZOOKEEPER-64.patch
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-64) We should log system env information
when intializing client/server
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-64:
----------------------------------
Status: Patch Available (was: Open)
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
> Attachments: ZOOKEEPER-64.patch
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-64) We should log system env information
when intializing client/server
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-64:
----------------------------------
Component/s: server
java client
c client
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.0.0
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-64) We should log system env information
when intializing client/server
Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Reed updated ZOOKEEPER-64:
-----------------------------------
Hadoop Flags: [Reviewed]
+1 Excellent.
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
> Attachments: ZOOKEEPER-64.patch
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-64) We should log system env
information when intializing client/server
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652749#action_12652749 ]
Hudson commented on ZOOKEEPER-64:
---------------------------------
Integrated in ZooKeeper-trunk #161 (See [http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/161/])
> We should log system env information when intializing client/server
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-64
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-64
> Project: Zookeeper
> Issue Type: Improvement
> Components: c client, java client, server
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.1.0
>
> Attachments: ZOOKEEPER-64.patch
>
>
> We should log system environment information (as much as possible) during both client & server initialization. This will help with debugging of customer issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.