@@ -485,9 +485,9 @@ public void testStats() throws Exception {
485485 waitForPositiveAge ();
486486 final TranslogStats stats = stats ();
487487 assertThat (stats .estimatedNumberOfOperations (), equalTo (1 ));
488- assertThat (stats .getTranslogSizeInBytes (), equalTo (156L + sourceLength ));
488+ assertThat (stats .getTranslogSizeInBytes (), equalTo (157L + sourceLength ));
489489 assertThat (stats .getUncommittedOperations (), equalTo (1 ));
490- assertThat (stats .getUncommittedSizeInBytes (), equalTo (101L + sourceLength ));
490+ assertThat (stats .getUncommittedSizeInBytes (), equalTo (102L + sourceLength ));
491491 assertThat (stats .getEarliestLastModifiedAge (), greaterThan (0L ));
492492 }
493493
@@ -496,9 +496,9 @@ public void testStats() throws Exception {
496496 waitForPositiveAge ();
497497 final TranslogStats stats = stats ();
498498 assertThat (stats .estimatedNumberOfOperations (), equalTo (2 ));
499- assertThat (stats .getTranslogSizeInBytes (), equalTo (192L + sourceLength ));
499+ assertThat (stats .getTranslogSizeInBytes (), equalTo (194L + sourceLength ));
500500 assertThat (stats .getUncommittedOperations (), equalTo (2 ));
501- assertThat (stats .getUncommittedSizeInBytes (), equalTo (137L + sourceLength ));
501+ assertThat (stats .getUncommittedSizeInBytes (), equalTo (139L + sourceLength ));
502502 assertThat (stats .getEarliestLastModifiedAge (), greaterThan (0L ));
503503 }
504504
@@ -507,9 +507,9 @@ public void testStats() throws Exception {
507507 waitForPositiveAge ();
508508 final TranslogStats stats = stats ();
509509 assertThat (stats .estimatedNumberOfOperations (), equalTo (3 ));
510- assertThat (stats .getTranslogSizeInBytes (), equalTo (228L + sourceLength ));
510+ assertThat (stats .getTranslogSizeInBytes (), equalTo (231L + sourceLength ));
511511 assertThat (stats .getUncommittedOperations (), equalTo (3 ));
512- assertThat (stats .getUncommittedSizeInBytes (), equalTo (173L + sourceLength ));
512+ assertThat (stats .getUncommittedSizeInBytes (), equalTo (176L + sourceLength ));
513513 assertThat (stats .getEarliestLastModifiedAge (), greaterThan (0L ));
514514 }
515515
@@ -518,9 +518,9 @@ public void testStats() throws Exception {
518518 waitForPositiveAge ();
519519 final TranslogStats stats = stats ();
520520 assertThat (stats .estimatedNumberOfOperations (), equalTo (4 ));
521- assertThat (stats .getTranslogSizeInBytes (), equalTo (270L + sourceLength ));
521+ assertThat (stats .getTranslogSizeInBytes (), equalTo (273L + sourceLength ));
522522 assertThat (stats .getUncommittedOperations (), equalTo (4 ));
523- assertThat (stats .getUncommittedSizeInBytes (), equalTo (215L + sourceLength ));
523+ assertThat (stats .getUncommittedSizeInBytes (), equalTo (218L + sourceLength ));
524524 assertThat (stats .getEarliestLastModifiedAge (), greaterThan (0L ));
525525 }
526526
@@ -529,9 +529,9 @@ public void testStats() throws Exception {
529529 waitForPositiveAge ();
530530 final TranslogStats stats = stats ();
531531 assertThat (stats .estimatedNumberOfOperations (), equalTo (4 ));
532- assertThat (stats .getTranslogSizeInBytes (), equalTo (325L + sourceLength ));
532+ assertThat (stats .getTranslogSizeInBytes (), equalTo (328L + sourceLength ));
533533 assertThat (stats .getUncommittedOperations (), equalTo (4 ));
534- assertThat (stats .getUncommittedSizeInBytes (), equalTo (270L + sourceLength ));
534+ assertThat (stats .getUncommittedSizeInBytes (), equalTo (273L + sourceLength ));
535535 assertThat (stats .getEarliestLastModifiedAge (), greaterThan (0L ));
536536 }
537537
@@ -541,7 +541,7 @@ public void testStats() throws Exception {
541541 stats .writeTo (out );
542542 final TranslogStats copy = new TranslogStats (out .bytes ().streamInput ());
543543 assertThat (copy .estimatedNumberOfOperations (), equalTo (4 ));
544- assertThat (copy .getTranslogSizeInBytes (), equalTo (325L + sourceLength ));
544+ assertThat (copy .getTranslogSizeInBytes (), equalTo (328L + sourceLength ));
545545
546546 try (XContentBuilder builder = XContentFactory .jsonBuilder ()) {
547547 builder .startObject ();
@@ -556,7 +556,7 @@ public void testStats() throws Exception {
556556 "uncommitted_size_in_bytes": %s,
557557 "earliest_last_modified_age": %s
558558 }
559- }""" , 325L + sourceLength , 270L + sourceLength , stats .getEarliestLastModifiedAge ()))));
559+ }""" , 328L + sourceLength , 273L + sourceLength , stats .getEarliestLastModifiedAge ()))));
560560 }
561561 }
562562 translog .getDeletionPolicy ().setLocalCheckpointOfSafeCommit (randomLongBetween (3 , Long .MAX_VALUE ));
0 commit comments