[ 
https://issues.apache.org/jira/browse/KNOX-2774?focusedWorklogId=788611&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-788611
 ]

ASF GitHub Bot logged work on KNOX-2774:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Jul/22 12:51
            Start Date: 07/Jul/22 12:51
    Worklog Time Spent: 10m 
      Work Description: MrtnBalazs opened a new pull request, #606:
URL: https://github.com/apache/knox/pull/606

   ## What changes were proposed in this pull request?
   
   Changed  the value of DEFAULT_APP_STATUS_TEST_RETRY_SLEEP from `2s` to `2` 
in `knox-functions.sh`, because sleep command in BSD family of operating 
systems (such as FreeBSD) or macOS/mac OS X does NOT take any suffix arguments 
(m/h/d). It only takes arguments in seconds.
   
   ## How was this patch tested?
   
   I tested it manually.
   Before the change:
   ```
   mbalazs-MBP15:test mbalazs$ bin/gateway.sh start
   usage: sleep seconds
   usage: sleep seconds
   .
   .
   .
   usage: sleep seconds
   usage: sleep seconds
   Starting Gateway succeeded with PID 55659.
   ```
   After the change:
   ```
   mbalazs-MBP15:test mbalazs$ bin/gateway.sh start
   Starting Gateway succeeded with PID 55659.
   ```
   I also tried a request using `curl -k -u tom:tom-password 
https://localhost:8443/gateway/sandbox/hive` and got 
   ```
   2022-07-07 14:50:25,037 726f3103-8de2-4ff8-9bc8-f47f8929da49 INFO  
knox.gateway (KnoxLdapRealm.java:getUserDn(688)) - Computed userDn: 
uid=tom,ou=people,dc=hadoop,dc=apache,dc=org using dnTemplate for principal: tom
   ```
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 788611)
    Remaining Estimate: 0h
            Time Spent: 10m

> "usage: sleep seconds" messages in terminal after starting knox
> ---------------------------------------------------------------
>
>                 Key: KNOX-2774
>                 URL: https://issues.apache.org/jira/browse/KNOX-2774
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Balazs Marton
>            Priority: Minor
>         Attachments: Screenshot 2022-07-06 at 18.00.24.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> After starting apache knox 
> {code:java}
> usage: sleep seconds
> {code}
> messages appear in terminal until the jetty server starts.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to