Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
mudphone committed Jun 17, 2010
1 parent feee09b commit 379da4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/rathore/amit/capjure/scanner_utils.clj
Expand Up @@ -52,11 +52,12 @@
(defn caused-by-scanner-timeout? [ex]
(some #(isa? (type %) org.apache.hadoop.hbase.client.ScannerTimeoutException)
(exception-causes ex)))

(defn next-result-scanner
"Returns vector of next result and whether exception occurred in retrieval."
[scanner]
(try
(let [next-result (.next scanner)]
(with-out-str (println next-result))
[next-result false])
(catch RuntimeException e
(if (caused-by-scanner-timeout? e)
Expand Down

0 comments on commit 379da4a

Please sign in to comment.