@@ -4761,7 +4761,7 @@ public void testDeleteIllegal() throws IOException {
4761
4761
4762
4762
@ Test
4763
4763
public void testCheckAndMutationIllegal () throws IOException {
4764
- // check and mute 只支持一行操作
4764
+ // checkAndPut 只支持一行操作
4765
4765
try {
4766
4766
Put put = new Put ("key_7" .getBytes ());
4767
4767
put .add ("family1" .getBytes (), "column1_1" .getBytes (), "value2" .getBytes ());
@@ -4772,20 +4772,6 @@ public void testCheckAndMutationIllegal() throws IOException {
4772
4772
Assert .assertTrue (e .getMessage ().contains ("doesn't match the original one" ));
4773
4773
}
4774
4774
4775
- // check and mute 只支持一行操作
4776
- try {
4777
- RowMutations mutations = new RowMutations ("key_7" .getBytes ());
4778
- Put put = new Put ("key_7" .getBytes ());
4779
- put .add ("family1" .getBytes (), "column1_1" .getBytes (), "value2" .getBytes ());
4780
- mutations .add (put );
4781
- boolean ret = hTable .checkAndMutate ("key_8" .getBytes (), "family1" .getBytes (),
4782
- "column1_1" .getBytes (), CompareFilter .CompareOp .EQUAL , "value1" .getBytes (),
4783
- mutations );
4784
- fail ();
4785
- } catch (IOException e ) {
4786
- Assert .assertTrue (e .getMessage ().contains ("mutation row is not equal check row error" ));
4787
- }
4788
-
4789
4775
try {
4790
4776
Put put = new Put ("key_8" .getBytes ());
4791
4777
put .add ("family2" .getBytes (), "column1_1" .getBytes (), "value2" .getBytes ());
@@ -5220,7 +5206,7 @@ public void testCellTTL() throws Exception {
5220
5206
try {
5221
5207
tryPut (hTable , errorPut );
5222
5208
} catch (Exception e ) {
5223
- assertTrue (e .getCause ().getCause (). toString ().contains ("Unknown column 'TTL'" ));
5209
+ assertTrue (e .getCause ().toString ().contains ("Unknown column 'TTL'" ));
5224
5210
}
5225
5211
// test put and get
5226
5212
tryPut (hTable , put1 );
0 commit comments