hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wenjun Yan <mylastnameis...@gmail.com>
Subject why Get#setMaxVersions throw an IOException
Date Mon, 11 Apr 2016 07:39:45 GMT
Hi, there!

I'm using hbase-client 1.1.2 and I found that Get#setMaxVersions would
throw an IOException if the the parameter maxVersions is less than 0. I'm
just wondering what's the point in throwing an IOException instead of
IllegalArgumentException.

https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Get.java#L246

while Scan#setMaxVersions doesn't throw an exception at all.

https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java#L476-L479

Thanks.
Yan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message