You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Bill Au (JIRA)" <ji...@apache.org> on 2007/07/10 03:53:04 UTC

[jira] Created: (SOLR-294) scripts fail to log elapsed time on Solaris

scripts fail to log elapsed time on Solaris
-------------------------------------------

                 Key: SOLR-294
                 URL: https://issues.apache.org/jira/browse/SOLR-294
             Project: Solr
          Issue Type: Bug
          Components: replication
         Environment: Solaris
            Reporter: Bill Au
            Assignee: Bill Au
            Priority: Minor


The code in the scritps to determine the elapsed time does not work on Solaris because the date command there does not support the %s output format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-294) scripts fail to log elapsed time on Solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Au resolved SOLR-294.
--------------------------

    Resolution: Fixed

Patch has been committed.

> scripts fail to log elapsed time on Solaris
> -------------------------------------------
>
>                 Key: SOLR-294
>                 URL: https://issues.apache.org/jira/browse/SOLR-294
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>         Environment: Solaris
>            Reporter: Bill Au
>            Assignee: Bill Au
>            Priority: Minor
>         Attachments: solr-294.patch
>
>
> The code in the scritps to determine the elapsed time does not work on Solaris because the date command there does not support the %s output format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-294) scripts fail to log elapsed time on Solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Au updated SOLR-294:
-------------------------

    Attachment: solr-294.patch

Here is the patch to using

perl -e "print time;"

to get the timestamp in seconds on Solaris.

I have added a new function in scripts-util to set the start time and updated all the scripts to use that.  This way the code to get timestamp and to calculate elapsed time is centralized in scripts.util.  We will just have to update a single source if we need to change it to support additional OSes.

> scripts fail to log elapsed time on Solaris
> -------------------------------------------
>
>                 Key: SOLR-294
>                 URL: https://issues.apache.org/jira/browse/SOLR-294
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>         Environment: Solaris
>            Reporter: Bill Au
>            Assignee: Bill Au
>            Priority: Minor
>         Attachments: solr-294.patch
>
>
> The code in the scritps to determine the elapsed time does not work on Solaris because the date command there does not support the %s output format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-294) scripts fail to log elapsed time on Solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Au updated SOLR-294:
-------------------------

    Fix Version/s: 1.3

> scripts fail to log elapsed time on Solaris
> -------------------------------------------
>
>                 Key: SOLR-294
>                 URL: https://issues.apache.org/jira/browse/SOLR-294
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>         Environment: Solaris
>            Reporter: Bill Au
>            Assignee: Bill Au
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: solr-294.patch
>
>
> The code in the scritps to determine the elapsed time does not work on Solaris because the date command there does not support the %s output format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-294) scripts fail to log elapsed time on Solaris

Posted by "Bill Au (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512085 ] 

Bill Au commented on SOLR-294:
------------------------------

By the way, I have lost my access to Solaris.  While I did tested the code snipplet the patch is using before when I still had access, I am now not able to test the patch itself on Solaris.  It will be good if someone using Solaris check this out.

> scripts fail to log elapsed time on Solaris
> -------------------------------------------
>
>                 Key: SOLR-294
>                 URL: https://issues.apache.org/jira/browse/SOLR-294
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>         Environment: Solaris
>            Reporter: Bill Au
>            Assignee: Bill Au
>            Priority: Minor
>         Attachments: solr-294.patch
>
>
> The code in the scritps to determine the elapsed time does not work on Solaris because the date command there does not support the %s output format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.