[ 
https://issues.apache.org/jira/browse/HDDS-10916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071107#comment-18071107
 ] 

Arun Sarin commented on HDDS-10916:
-----------------------------------

Hi [~arafat2198] ,

I took a look at this Jira and logs above.

*Problem (summary)*
Namespace summary acceptance tests fail intermittently because APIs return 
{{"status":"INITIALIZING"}} for a long time. That happens when Recon’s HTTP 
server is up but the local OM snapshot / OM tables are not loaded yet. The 
Robot suite only waits 90s for {{{}"status":"OK"{}}}, while the default first 
OM DB sync delay is 1 minute, so cold starts can exceed the test window.
h3. Approach A — Product fix 

Change: If Recon has no initialized OM metadata (no local OM DB loaded yet), 
schedule the first OM DB sync with initial delay 0 instead of honoring 
{{ozone.recon.om.snapshot.task.initial.delay}} for that first run. Keep the 
configured delay when a snapshot is already present (normal restart).

Pros: Fixes the root cause for all clients, not only CI; reduces time-to-ready 
after cold start.
Cons: Slightly more aggressive first snapshot right after startup (usually 
desirable when there is no DB yet).

Where: {{OzoneManagerServiceProviderImpl}} startup / OM sync scheduling (and 
small unit tests for the delay helper).
h3. Approach B — Test-only

Change: Increase {{Wait Until Keyword Succeeds}} in {{recon-nssummary.robot}} 
(e.g. 90s → 180–240s) and/or add a suite-level wait until one namespace call 
returns {{"status":"OK"}} before the rest.

Pros: Minimal code surface; easy review.
Cons: Does not fix user-visible cold-start latency; flake can still happen on 
very slow runs.
h3. Approach C — Configuration (test / compose env)

Change: Set {{ozone.recon.om.snapshot.task.initial.delay}} to {{0s}} (or a 
small value) only in acceptance / docker configs.

Pros: No Java change.
Cons: Easy to forget in new environments; doesn’t improve default production 
behavior.

 

Can you please suggest here ? Added option A , diff patch file .

 

 

> Intermittent failure in Recon Namespace Summary acceptance test
> ---------------------------------------------------------------
>
>                 Key: HDDS-10916
>                 URL: https://issues.apache.org/jira/browse/HDDS-10916
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Recon
>            Reporter: Attila Doroszlai
>            Assignee: Arafat Khan
>            Priority: Major
>         Attachments: HDDS-10916-option-A.patch
>
>
> {code}
> Recon.Recon-Nssummary :: Smoke test for Recon Namespace Summary Endpoint fo...
> ==============================================================================
> ...
> Check Recon Namespace Summary Root                                    | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: 
> '{"path":"","type":"UNKNOWN","countStats":null,"objectInfo":null,"status":"INITIALIZING"}'
>  does not contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace Summary Volume                                  | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: 
> '{"path":"","type":"UNKNOWN","countStats":null,"objectInfo":null,"status":"INITIALIZING"}'
>  does not contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace Summary Bucket                                  | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: 
> '{"path":"","type":"UNKNOWN","countStats":null,"objectInfo":null,"status":"INITIALIZING"}'
>  does not contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace Summary Key                                     | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: 
> '{"path":"","type":"UNKNOWN","countStats":null,"objectInfo":null,"status":"INITIALIZING"}'
>  does not contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace Summary Directory                               | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: 
> '{"path":"","type":"UNKNOWN","countStats":null,"objectInfo":null,"status":"INITIALIZING"}'
>  does not contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace Disk Usage                                      | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: 
> '{"status":"INITIALIZING","path":null,"size":0,"sizeWithReplica":-1,"subPathCount":0,"subPaths":[],"sizeDirectKey":-1}'
>  does not contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace Volume Quota Usage                              | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: '{"allowed":0,"used":0,"status":"INITIALIZING"}' does not 
> contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace Bucket Quota Usage                              | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: '{"allowed":0,"used":0,"status":"INITIALIZING"}' does not 
> contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Check Recon Namespace File Size Distribution Root                     | FAIL |
> Keyword 'Test Summary' failed after retrying for 1 minute 30 seconds. The 
> last error was: 
> '{"dist":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"status":"INITIALIZING"}'
>  does not contain '"status":"OK"'
> ------------------------------------------------------------------------------
> Recon.Recon-Nssummary :: Smoke test for Recon Namespace Summary En... | FAIL |
> 16 tests, 7 passed, 9 failed
> {code}
> * 
> https://github.com/adoroszlai/ozone-build-results/blob/master/2024/03/29/30310/acceptance-misc/output.log
> * 
> https://github.com/adoroszlai/ozone-build-results/blob/master/2024/04/20/30794/acceptance-unsecure/output.log



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to