[
https://issues.apache.org/jira/browse/HBASE-27038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17550678#comment-17550678
]
Bryan Beaudreault commented on HBASE-27038:
-------------------------------------------
I changed this to a bug fix, because I think that's more accurate. The bug was
introduced in 2.0.0, but I set the "Affected versions" to 2.4.12, 3.0.0-alpha-2
because I think those are the only released versions we'd care to note this
for. But anyone feel free to chime in if that's wrong
> CellComparator should extend Serializable
> -----------------------------------------
>
> Key: HBASE-27038
> URL: https://issues.apache.org/jira/browse/HBASE-27038
> Project: HBase
> Issue Type: Bug
> Affects Versions: 3.0.0-alpha-2, 2.4.12
> Reporter: Bryan Beaudreault
> Assignee: Bryan Beaudreault
> Priority: Minor
> Fix For: 2.5.0, 3.0.0-alpha-3, 2.4.13
>
>
> 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)