yiming187 closed pull request #156: KYLIN-3399, makes the code that added in
KYLIN-2474 more intuitive.
URL: https://github.com/apache/kylin/pull/156
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/core-cube/src/main/java/org/apache/kylin/cube/cli/DictionaryGeneratorCLI.java
b/core-cube/src/main/java/org/apache/kylin/cube/cli/DictionaryGeneratorCLI.java
index 2a243702cb..7fcf3208d1 100644
---
a/core-cube/src/main/java/org/apache/kylin/cube/cli/DictionaryGeneratorCLI.java
+++
b/core-cube/src/main/java/org/apache/kylin/cube/cli/DictionaryGeneratorCLI.java
@@ -94,8 +94,12 @@ private static void processSegment(KylinConfig config,
CubeSegment cubeSeg, Dist
cubeSeg = updatedCube.getSegmentById(cubeSeg.getUuid());
for (TableRef lookup : toCheckLookup) {
logger.info("Checking snapshot of " + lookup);
- JoinDesc join =
cubeSeg.getModel().getJoinsTree().getJoinByPKSide(lookup);
- cubeMgr.getLookupTable(cubeSeg, join);
+ try {
+ JoinDesc join =
cubeSeg.getModel().getJoinsTree().getJoinByPKSide(lookup);
+ cubeMgr.getLookupTable(cubeSeg, join);
+ } catch (Throwable th) {
+ throw new RuntimeException("Checking snapshot of " + lookup +
" failed.", th);
+ }
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services