Skip to content

Commit

Permalink
GBL-20935
Browse files Browse the repository at this point in the history
  • Loading branch information
per.ullberg committed Jun 17, 2015
1 parent 228cd76 commit ed62a12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/com/klarna/hiverunner/NeverEndingUdf.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

public class NeverEndingUdf extends UDF {

private final Logger LOGGER = LoggerFactory.getLogger(HiveServerContainer.class);
private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());

public Text evaluate(Text value) {
LOGGER.warn("Entering infinite loop");
while (true) {
LOGGER.debug("Looping and generating random seed: {}", new SecureRandom(value.copyBytes()).generateSeed(12332123));
LOGGER.debug("Looping and generating random seed: {}",
new SecureRandom(value.copyBytes()).generateSeed(12332123));
}
}
}

0 comments on commit ed62a12

Please sign in to comment.