ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Levas" <rle...@hortonworks.com>
Subject Re: Review Request 29917: Create new API endpoints for cluster and service kerberos descriptors
Date Thu, 15 Jan 2015 14:25:15 GMT


> On Jan. 15, 2015, 7:20 a.m., Robert Levas wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ArtifactEntity.java,
line 134
> > <https://reviews.apache.org/r/29917/diff/1/?file=822395#file822395line134>
> >
> >     Does this guarentee that a Map containing the same data serilaizes to the same
String?  What if the same key/value pairs are in a TreeMap as opposed to a HashMap or an EnumMap?

```
Gson gson = new Gson();

Map<String, String> map1 = new TreeMap<String, String>();
map1.put("key1", "value1");
map1.put("key2", "value2");

Map<String, String> map2 = new HashMap<String, String>();
map2.put("key1", "value1");
map2.put("key2", "value2");

System.out.println(map1.equals(map2)); // true
System.out.println(gson.toJson(map1)); // {"key1":"value1","key2":"value2"}
System.out.println(gson.toJson(map2)); // {"key2":"value2","key1":"value1"}
```


- Robert


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29917/#review68236
-----------------------------------------------------------


On Jan. 14, 2015, 10:44 p.m., John Speidel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29917/
> -----------------------------------------------------------
> 
> (Updated Jan. 14, 2015, 10:44 p.m.)
> 
> 
> Review request for Ambari, Robert Levas and Tom Beerbower.
> 
> 
> Bugs: AMBARI-9142
>     https://issues.apache.org/jira/browse/AMBARI-9142
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Add new cluster and service artifact endpoints.
> These new artifact endpoints can be used to expose kerberos descriptors for clusters
and services.
> 
> New cluster artifact endpoint: clusters/c1/artifacts
> New service artifact endpoint: clusters/c1/services/s1/artifacts
> 
> For more detailed information see the associated Jira.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/api/resources/ClusterResourceDefinition.java
422cf1c 
>   ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
a75729d 
>   ambari-server/src/main/java/org/apache/ambari/server/api/resources/ServiceResourceDefinition.java
be8e0b4 
>   ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java
ead49ca 
>   ambari-server/src/main/java/org/apache/ambari/server/api/services/ServiceService.java
a51b50b 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ArtifactResourceProvider.java
PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DefaultProviderModule.java
be2a9ad 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java 740f37e

>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ArtifactDAO.java PRE-CREATION

>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ArtifactEntity.java
PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ArtifactEntityPK.java
PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog200.java
dae920e 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 4e61f36 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 59031f7 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql bfb49e5 
>   ambari-server/src/main/resources/META-INF/persistence.xml dc49b7c 
>   ambari-server/src/test/java/org/apache/ambari/server/api/resources/ClusterResourceDefinitionTest.java
6d897b2 
>   ambari-server/src/test/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImplTest.java
b5cfcc3 
>   ambari-server/src/test/java/org/apache/ambari/server/api/resources/ServiceResourceDefinitionTest.java
PRE-CREATION 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ArtifactResourceProviderTest.java
PRE-CREATION 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog200Test.java
73531ec 
> 
> Diff: https://reviews.apache.org/r/29917/diff/
> 
> 
> Testing
> -------
> 
> Manual functional testing including creating and obtaining cluster and service artifacts.
> New Unit tests added.
> 
> Currently running unit tests on patch.
> 
> 
> Thanks,
> 
> John Speidel
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message