forked from pentaho/mondrian
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pentaho#1151 from lucboudreau/mondrian2674
[MONDRIAN-2674] Better logging of late SQL queries for segments.
- Loading branch information
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
mondrian/src/it/java/mondrian/rolap/cache/SegmentCacheIndexImplTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
// This software is subject to the terms of the Eclipse Public License v1.0 | ||
// Agreement, available at the following URL: | ||
// http://www.eclipse.org/legal/epl-v10.html. | ||
// You must accept the terms of that agreement to use this software. | ||
// | ||
// Copyright (c) 2019-2019 Hitachi Vantara. | ||
// All Rights Reserved. | ||
*/ | ||
package mondrian.rolap.cache; | ||
|
||
import static org.mockito.Mockito.mock; | ||
|
||
import mondrian.spi.SegmentBody; | ||
import mondrian.spi.SegmentHeader; | ||
import mondrian.test.FoodMartTestCase; | ||
|
||
public class SegmentCacheIndexImplTest extends FoodMartTestCase { | ||
public void testNoHeaderOnLoad() { | ||
final SegmentCacheIndexImpl index = | ||
new SegmentCacheIndexImpl(Thread.currentThread()); | ||
|
||
final SegmentHeader header = mock(SegmentHeader.class); | ||
final SegmentBody body = mock(SegmentBody.class); | ||
|
||
// This should not fail. | ||
index.loadSucceeded(header, body); | ||
} | ||
} | ||
|
||
//End SegmentCacheIndexImplTest.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters