[ 
https://issues.apache.org/jira/browse/HBASE-18106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076705#comment-16076705
 ] 

stack commented on HBASE-18106:
-------------------------------

So, poking (prompted by [~balazs.meszaros] questions), our Procedure PB only 
has core info and the 'extra' that is particular to a Procedure type is done as 
special info to serialize. Can see this when I hack up serialization of a 
SplitTableRegionProcedure:


{"className":"org.apache.hadoop.hbase.master.assignment.SplitTableRegionProcedure","procId":"18446744073709551615","submittedTime":"0","state":"INITIALIZING","lastUpdate":"0","stateData":"ABsIARINCgVoYmFzZRIEbWV0YRoAIgAoADAAOABxCgYKBE5PTkUSGwgBEg0KBWhiYXNlEgRtZXRhGgAiACgAMAA4ABokCOy/lsTRKxINCgVoYmFzZRIEbWV0YRoAIgRpbmZvKAAwADgAGiQI7L+WxNErEg0KBWhiYXNlEgRtZXRhGgRpbmZvIgAoADAAOAA="}

The parent region and daughters, etc., is in the opaque 'stateData'.

Makes sense.

Means for JSON would need means of JSON version of stateData....

> Redo ProcedureInfo and LockInfo
> -------------------------------
>
>                 Key: HBASE-18106
>                 URL: https://issues.apache.org/jira/browse/HBASE-18106
>             Project: HBase
>          Issue Type: Sub-task
>          Components: proc-v2
>    Affects Versions: 2.0.0
>            Reporter: stack
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> ProcedureInfo was introduced as a lowest-common-denominator POJO that could 
> be used as a facade on PB Procedures. It was good for showing state of 
> Procedure framework in shell and UI.
> Its a bit weird though. Its up in hbase-common rather than in Procedure and 
> it can only ever show a subset of the Procedure info.
> I was thinking we could use the pb3.1 pb->JSON utility instead and emit a 
> JSON String wherever we need to export a view on procedure internals.
> This issue is about exploring this possibility. Would depend on our having an 
> upgraded guava (so probably depends on the 'pre-build' project).
> From ProcedureInfo and LockInfo need fixing in 
> https://docs.google.com/document/d/1eVKa7FHdeoJ1-9o8yZcOTAQbv0u0bblBlCCzVSIn69g/edit#heading=h.kid1jzo114xw



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to