[
https://issues.apache.org/jira/browse/OAK-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francesco Mari updated OAK-4506:
--------------------------------
Attachment: OAK-4506-01.patch
The change in [^OAK-4506-01.patch] loosens the conditions asserted by the test.
Some of those conditions embody an expectation on the amount of bytes written
by the store, but these expectations are easily broken if some metadata is
added or removed from the stored data.
> CompactionAndCleanupIT.offlineCompaction() fails on Windows
> -----------------------------------------------------------
>
> Key: OAK-4506
> URL: https://issues.apache.org/jira/browse/OAK-4506
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segment-tar
> Reporter: Francesco Mari
> Assignee: Francesco Mari
> Fix For: Segment Tar 0.0.4
>
> Attachments: OAK-4506-01.patch
>
>
> The integration test {{CompactionAndCleanupIT.offlineCompaction()}} has been
> reported to fail on Windows.
> {noformat}
> Running org.apache.jackrabbit.oak.segment.CompactionAndCleanupIT
> Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 47.951 sec
> <<< FAILURE!
> offlineCompaction(org.apache.jackrabbit.oak.segment.CompactionAndCleanupIT)
> Time elapsed: 6.005 sec <<< FAILURE!
> java.lang.AssertionError: File Store 1st blob added size expected in interval
> [15415808,15468236] but was: 15571456
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at
> org.apache.jackrabbit.oak.segment.CompactionAndCleanupIT.assertSize(CompactionAndCleanupIT.java:473)
> at
> org.apache.jackrabbit.oak.segment.CompactionAndCleanupIT.offlineCompaction(CompactionAndCleanupIT.java:209)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)