sentry-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <j...@apache.org>
Subject [jira] [Updated] (SENTRY-2052) Reduce TestSentryStore time by setting transaction retries to 1 and other refactors
Date Thu, 16 Nov 2017 23:58:00 GMT

     [ https://issues.apache.org/jira/browse/SENTRY-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergio Peña updated SENTRY-2052:
--------------------------------
    Attachment: SENTRY-2052.1.patch

This patch has a couple of improvements:

- Set the transaction retry max to 1 instead of 10. This high number was causing much of the
overhead on the tests.
- Moved the SentryStore object creation from the @Before method to the @BeforeClass method.
This also save precious 35 seconds.

With the patch the time is reduced from 3min to 45 seconds.

> Reduce TestSentryStore time by setting transaction retries to 1 and other refactors
> -----------------------------------------------------------------------------------
>
>                 Key: SENTRY-2052
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2052
>             Project: Sentry
>          Issue Type: Test
>          Components: Sentry
>    Affects Versions: 2.0.0
>            Reporter: Sergio Peña
>            Priority: Minor
>         Attachments: SENTRY-2052.1.patch
>
>
> The TestSentryStore is taking 3min to finish. By analyzing the code, I found a couple
of places where the time can be reduced.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message