ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Dijak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-8722) Issue in REST API 2.5
Date Wed, 06 Jun 2018 13:14:00 GMT
Denis Dijak created IGNITE-8722:
-----------------------------------

             Summary: Issue in REST API 2.5
                 Key: IGNITE-8722
                 URL: https://issues.apache.org/jira/browse/IGNITE-8722
             Project: Ignite
          Issue Type: Bug
          Components: rest
    Affects Versions: 2.5
            Reporter: Denis Dijak


In 2.5 ignite REST-API dosent show cache value structure correctly

rest-api 2.4

"0013289414": {
 "timeFrom": 1527166800,
 "timeTo": 1528199550,
 "results": ["BUSINESS-EU",
 ],
 "child": {
 "timeFrom": 1527166800,
 "timeTo": 10413788400,
 "results": ["BUSINESS-EU",
 ],
 "child": null
 }
}
------------
rest-api2.5

"0013289414": {
 "timeFrom": 1527166800,
 "timeTo": 1528199550,
 "results": ["BUSINESS-EU",
 ]
}

As you can see the child is missing. If i switch back to 2.4 REST-API everything works as
expected. 

The above structure is class ValidityNode and the child that is missing in 2.5 is also a ValidityNode.
The structure is meant to be as parent-child implementation.

public class ValidityNode {
 private long timeFrom;
 private long timeTo; 
 private ArrayList<String> results = null;
 private ValidityNode child = null;

public ValidityNode() {
 // default constructor
 }

public long getTimeFrom() {
 return timeFrom;
 }

public void setTimeFrom(long timeFrom) {
 this.timeFrom = timeFrom;
 }

public long getTimeTo() {
 return timeTo;
 }

public void setTimeTo(long timeTo) {
 this.timeTo = timeTo;
 }

public ArrayList<String> getResults() {
 return results;
 }

public void setResults(ArrayList<String> results) {
 this.results = results;
 }

public ValidityNode getChild() {
 return child;
 }

public void setChild(ValidityNode child) {
 this.child = child;
 }

@Override
 public String toString() {
 return "ValidityNode [timeFrom=" + timeFrom + ", timeTo=" + timeTo + ", results=" + results
+ ", child="
 + child + "]";
 }

Is this issue maybe related to keyType and valueType that were intruduced in 2.5?

 

 



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

Mime
View raw message