You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andy Cobley (JIRA)" <ji...@apache.org> on 2012/07/02 17:21:16 UTC
[jira] [Created] (CASSANDRA-4401) If processor is missing from
/proc/cpuinfo, cassandra will not start
Andy Cobley created CASSANDRA-4401:
--------------------------------------
Summary: If processor is missing from /proc/cpuinfo, cassandra will not start
Key: CASSANDRA-4401
URL: https://issues.apache.org/jira/browse/CASSANDRA-4401
Project: Cassandra
Issue Type: Bug
Components: Packaging
Affects Versions: 1.1.1
Reporter: Andy Cobley
Priority: Minor
cassandra.env.sh does an egrep on /proc/cpuinfo in order to find the number of processors on the system. If /proc/cpuinfo does not contain a processor :# line then the script will fail because of a divide by 0 error. Changing the Linux section of cassandra.env.sh to:
Linux)
system_memory_in_mb=`free -m | awk '/Mem:/ {print $2}'`
system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
if [ "$system_cpu_cores" -lt "1" ]
then
system_cpu_cores="1"
fi
is a possible fix
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4401) If processor is missing from
/proc/cpuinfo, cassandra will not start
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-4401:
--------------------------------------
Reviewer: brandon.williams
> If processor is missing from /proc/cpuinfo, cassandra will not start
> --------------------------------------------------------------------
>
> Key: CASSANDRA-4401
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4401
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Affects Versions: 1.1.1
> Reporter: Andy Cobley
> Priority: Minor
> Fix For: 1.1.3
>
> Attachments: 4401.txt
>
>
> cassandra.env.sh does an egrep on /proc/cpuinfo in order to find the number of processors on the system. If /proc/cpuinfo does not contain a processor :# line then the script will fail because of a divide by 0 error. Changing the Linux section of cassandra.env.sh to:
> Linux)
> system_memory_in_mb=`free -m | awk '/Mem:/ {print $2}'`
> system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
> if [ "$system_cpu_cores" -lt "1" ]
> then
> system_cpu_cores="1"
> fi
> is a possible fix
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4401) If processor is missing from
/proc/cpuinfo, cassandra will not start
Posted by "Andy Cobley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411587#comment-13411587 ]
Andy Cobley commented on CASSANDRA-4401:
----------------------------------------
Good idea !
> If processor is missing from /proc/cpuinfo, cassandra will not start
> --------------------------------------------------------------------
>
> Key: CASSANDRA-4401
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4401
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Affects Versions: 1.1.1
> Reporter: Andy Cobley
> Priority: Minor
> Fix For: 1.1.3
>
> Attachments: 4401.txt
>
>
> cassandra.env.sh does an egrep on /proc/cpuinfo in order to find the number of processors on the system. If /proc/cpuinfo does not contain a processor :# line then the script will fail because of a divide by 0 error. Changing the Linux section of cassandra.env.sh to:
> Linux)
> system_memory_in_mb=`free -m | awk '/Mem:/ {print $2}'`
> system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
> if [ "$system_cpu_cores" -lt "1" ]
> then
> system_cpu_cores="1"
> fi
> is a possible fix
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4401) If processor is missing from
/proc/cpuinfo, cassandra will not start
Posted by "Andy Cobley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Cobley updated CASSANDRA-4401:
-----------------------------------
Attachment: 4401.txt
> If processor is missing from /proc/cpuinfo, cassandra will not start
> --------------------------------------------------------------------
>
> Key: CASSANDRA-4401
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4401
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Affects Versions: 1.1.1
> Reporter: Andy Cobley
> Priority: Minor
> Attachments: 4401.txt
>
>
> cassandra.env.sh does an egrep on /proc/cpuinfo in order to find the number of processors on the system. If /proc/cpuinfo does not contain a processor :# line then the script will fail because of a divide by 0 error. Changing the Linux section of cassandra.env.sh to:
> Linux)
> system_memory_in_mb=`free -m | awk '/Mem:/ {print $2}'`
> system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
> if [ "$system_cpu_cores" -lt "1" ]
> then
> system_cpu_cores="1"
> fi
> is a possible fix
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4401) If processor is missing from
/proc/cpuinfo, cassandra will not start
Posted by "Andy Cobley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407068#comment-13407068 ]
Andy Cobley commented on CASSANDRA-4401:
----------------------------------------
Patch attached, hope I've done it right !
> If processor is missing from /proc/cpuinfo, cassandra will not start
> --------------------------------------------------------------------
>
> Key: CASSANDRA-4401
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4401
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Affects Versions: 1.1.1
> Reporter: Andy Cobley
> Priority: Minor
> Attachments: 4401.txt
>
>
> cassandra.env.sh does an egrep on /proc/cpuinfo in order to find the number of processors on the system. If /proc/cpuinfo does not contain a processor :# line then the script will fail because of a divide by 0 error. Changing the Linux section of cassandra.env.sh to:
> Linux)
> system_memory_in_mb=`free -m | awk '/Mem:/ {print $2}'`
> system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
> if [ "$system_cpu_cores" -lt "1" ]
> then
> system_cpu_cores="1"
> fi
> is a possible fix
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira