[jira] [Created] (IGNITE-11752) Refactor usages of "System.getenv(key)" to IgniteSystemProperties.getString(key)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-11752) Refactor usages of "System.getenv(key)" to IgniteSystemProperties.getString(key)

Anton Vinogradov (Jira)
Alexey Kuznetsov created IGNITE-11752:
-----------------------------------------

             Summary: Refactor usages of "System.getenv(key)" to IgniteSystemProperties.getString(key)
                 Key: IGNITE-11752
                 URL: https://issues.apache.org/jira/browse/IGNITE-11752
             Project: Ignite
          Issue Type: Improvement
          Components: general
            Reporter: Alexey Kuznetsov
            Assignee: Alexey Kuznetsov


IgniteSystemProperties.getString(key) implemented as:
 1. Try to get property from System.properties.
 2. If not found - try to get from System.getenv

In Java you could easily override System.properties from code, for testing purposes, for example, but it is almost impossible to do the same for environment variables.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)