[ 
https://issues.apache.org/jira/browse/HBASE-27038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Beaudreault updated HBASE-27038:
--------------------------------------
    Labels: needs-review patch-available  (was: )
    Status: Patch Available  (was: Open)

Submitted https://github.com/apache/hbase/pull/4492

> CellComparator should extend Serializable
> -----------------------------------------
>
>                 Key: HBASE-27038
>                 URL: https://issues.apache.org/jira/browse/HBASE-27038
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Bryan Beaudreault
>            Assignee: Bryan Beaudreault
>            Priority: Minor
>              Labels: patch-available, needs-review
>
> Prior to HBASE-18945, CellComparator was a class which implemented 
> Serializable. In that jira, an interface was extracted with the intent of 
> making the implementation IA.Private. This broke some downstream consumers, 
> so the new CellComparator interface was made IA.Public in HBASE-19160.
> One remaining breakage from that change is that if someone is using 
> CellComparator in spark it will fails because it's not serializable. 
> Everything in spark needs to be serializable, and the old CellComprator class 
> used to extend Serializable. There was some small discussion in HBASE-18945 
> about removing Serializable, but I don't think anyone thought of this 
> use-case.
> The failure is:
> Job aborted due to stage failure: Task not serializable: 
> java.io.NotSerializableException: org.apache.hadoop.hbase.CellComparatorImpl
> We should make CellComparator extend Serializable, or have CellComparatorImpl 
> implement it.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to