Community
Participate
Working Groups
I wrote a short program that creates 100 content instances: //example code Cnt cnt = new Cnt(); cnt.setRn("test-java"); this.manager.createResource("", false, cnt); for (Integer i = 0; i < 100; ++i) { this.manager.createContentInstance01("test-java", i.toString(), true); } The resource name of each content instance corresponds to its index. Moreover, the method createContentInstance01 synchronously creates a content instance. As a result, the container "test-java" contains many content instances with the resource names "0", "1", "2",..., "97", "98", and "99". When I use the HTTP-Rest-Service to get the latest content instance ("http://localhost:8080/in-name/test-java/la"), I expect to get the content instance with the resource name "99". Unfortunately, in most cases I get a different content instance, e.g. "93". I guess one reason for this problem is that "la" triggers the following code (LatestOldestController.java): cinEntity = containerEntity.getChildContentInstances().get(containerEntity.getChildContentInstances().size()-1); It seems that this code does not accurately resemble the creation order of content instances? Remark: I'm on the master branch.