Hi, with maven we set a custom -Dupdate.limit=100
The default for the SegmentNodeBuilder is 10000. Maybe this is causing different segment sizes? Regards Marcel On 09/09/14 16:27, "Martin Böttcher" <[email protected]> wrote: >Hi, > >I'm not sure what the "execution mode" is. In IntelliJ Idea it makes no >difference whether I RUN or DEBUG the test case. The size if always 2576. >Speaking of maven the size (2720) does not depend on the target ("test" >or "clean install"). If I misunderstood the question please specify what >I shall check. > >Martin > >Am 09.09.2014 um 16:21 schrieb Chetan Mehrotra ><[email protected]>: > >>> gives me a segment with the size of 2576 bytes if I run it using >>>IntelliJ Idea and 2720 bytes if I use "mvn test". >> >> Were you running the test in debug mode or normal execution mode? >> Chetan Mehrotra >> >> >> On Tue, Sep 9, 2014 at 7:16 PM, Martin Böttcher >> <[email protected]> wrote: >>> Hi, >>> >>> I noticed that running the same code (inside a test case) leads to >>>different results depending on how the test is started. The code: >>> --- >>> NodeStore store = new SegmentNodeStore(storeS); >>> NodeBuilder rootbuilder = store.getRoot().builder(); >>> NodeBuilder b = rootbuilder.child("store"); >>> NodeBuilder builder = b.child("Folder#0"); >>> for (int i = 0; i <100; i++) { >>> builder.child("Test#" + i); >>> } >>> store.merge(rootbuilder, EmptyHook.INSTANCE, CommitInfo.EMPTY); >>> storeS.flush(); >>> >>> for (SegmentId id : storeS.getSegmentIds()) { >>> System.out.println("Segment id " + id + " has size: " + >>>storeS.readSegment(id).size()); >>> } >>> --- >>> gives me a segment with the size of 2576 bytes if I run it using >>>IntelliJ Idea and 2720 bytes if I use "mvn test". >>> >>> Can somebody give me a pointer what can cause this? >>> >>> Regards >>> Martin >
