Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-858

Disallow null primary key

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 3.0.0, 4.0.0
    • Labels:
      None

      Description

      Here is the error stack which is due to hbase0.98+ code doesn't allow empty row

      testIsNullAsSingleKey(org.apache.phoenix.end2end.IsNullIT)  Time elapsed: 0.214 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Row length is 0
              at org.apache.hadoop.hbase.client.Mutation.checkRow(Mutation.java:512)
              at org.apache.hadoop.hbase.client.Put.<init>(Put.java:106)
              at org.apache.hadoop.hbase.client.Put.<init>(Put.java:64)
              at org.apache.hadoop.hbase.client.Put.<init>(Put.java:54)
              at org.apache.phoenix.schema.PTableImpl$PRowImpl.newMutations(PTableImpl.java:560)
              at org.apache.phoenix.schema.PTableImpl$PRowImpl.<init>(PTableImpl.java:555)
              at org.apache.phoenix.schema.PTableImpl.newRow(PTableImpl.java:480)
              at org.apache.phoenix.schema.PTableImpl.newRow(PTableImpl.java:496)
              at org.apache.phoenix.execute.MutationState.addRowMutations(MutationState.java:173)
              at org.apache.phoenix.execute.MutationState.commit(MutationState.java:345)
              at org.apache.phoenix.jdbc.PhoenixConnection.commit(PhoenixConnection.java:356)
              at org.apache.phoenix.end2end.IsNullIT.testIsNullAsSingleKey(IsNullIT.java:83)
      

        Attachments

        1. PHOENIX-858.patch
          18 kB
          James Taylor
        2. phoenix-858.patch
          1 kB
          Jeffrey Zhong

          Activity

            People

            • Assignee:
              jeffreyz Jeffrey Zhong
              Reporter:
              jeffreyz Jeffrey Zhong
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: