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

Reply via email to