[jira] [Updated] (HBASE-7419) revisit hfilelink file name format.

2013-01-08 Thread Matteo Bertozzi (JIRA)

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

Matteo Bertozzi updated HBASE-7419:
---

Resolution: Fixed
Status: Resolved  (was: Patch Available)

committed to the snapshot branch, 
thanks guys for the review!

> revisit hfilelink file name format.
> ---
>
> Key: HBASE-7419
> URL: https://issues.apache.org/jira/browse/HBASE-7419
> Project: HBase
>  Issue Type: Sub-task
>  Components: Client, master, regionserver, snapshots, Zookeeper
>Reporter: Jonathan Hsieh
>Assignee: Matteo Bertozzi
> Fix For: hbase-6055, 0.96.0
>
> Attachments: HBASE-7419-v0.patch, HBASE-7419-v1.patch, 
> HBASE-7419-v2.patch, HBASE-7419-v3.patch
>
>
> Valid table names are concatted with a '.' to a valid regions names is also a 
> valid table name, and lead to the incorrect interpretation.
> {code}
> true hfile name constraints: [0-9]+(?:_SeqID_[0-9]+)?
> region name constraints: [a-f0-9]{16}  (but we currently just use 
> [a-f0-9]+.)
> table name constraints : [a-zA-Z0-9_][a-zA-Z0-9_.-]*
> {code}
> Notice that the table name constraints completely covers all region name 
> constraints and true hfile name constraints.   (a valid hfile name is a valid 
> part of a table name, and a valid enc region name is a valid part of a table 
> name.
> Currently the hfilelink filename convention is --.  
> Unfortunately, making a ref to this uses the name 
> --. -- the contactnation of 
> . is a valid table name used to get interpreted as such. 
>  The fix in HBASE-7339 requires a FileNotFoundException before going down the 
> hfile link resolution path. 
> Regardless of what we do, we need to add some char invalid for table names to 
> the hfilelink or reference filename convention.
> Suggestion: if we changed the order of the hfile-link name we could avoid 
> some of the confusion -- @-. (or some 
> other separator char than '@') could be used to avoid handling on the initial 
> filenotfoundexception but I think we'd still need a good chunk of the logic 
> to handle opening half-storefile reader throw a hfilelink.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-7419) revisit hfilelink file name format.

2013-01-08 Thread Matteo Bertozzi (JIRA)

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

Matteo Bertozzi updated HBASE-7419:
---

Status: Patch Available  (was: Open)

> revisit hfilelink file name format.
> ---
>
> Key: HBASE-7419
> URL: https://issues.apache.org/jira/browse/HBASE-7419
> Project: HBase
>  Issue Type: Sub-task
>  Components: Client, master, regionserver, snapshots, Zookeeper
>Reporter: Jonathan Hsieh
>Assignee: Matteo Bertozzi
> Fix For: hbase-6055, 0.96.0
>
> Attachments: HBASE-7419-v0.patch, HBASE-7419-v1.patch, 
> HBASE-7419-v2.patch, HBASE-7419-v3.patch
>
>
> Valid table names are concatted with a '.' to a valid regions names is also a 
> valid table name, and lead to the incorrect interpretation.
> {code}
> true hfile name constraints: [0-9]+(?:_SeqID_[0-9]+)?
> region name constraints: [a-f0-9]{16}  (but we currently just use 
> [a-f0-9]+.)
> table name constraints : [a-zA-Z0-9_][a-zA-Z0-9_.-]*
> {code}
> Notice that the table name constraints completely covers all region name 
> constraints and true hfile name constraints.   (a valid hfile name is a valid 
> part of a table name, and a valid enc region name is a valid part of a table 
> name.
> Currently the hfilelink filename convention is --.  
> Unfortunately, making a ref to this uses the name 
> --. -- the contactnation of 
> . is a valid table name used to get interpreted as such. 
>  The fix in HBASE-7339 requires a FileNotFoundException before going down the 
> hfile link resolution path. 
> Regardless of what we do, we need to add some char invalid for table names to 
> the hfilelink or reference filename convention.
> Suggestion: if we changed the order of the hfile-link name we could avoid 
> some of the confusion -- @-. (or some 
> other separator char than '@') could be used to avoid handling on the initial 
> filenotfoundexception but I think we'd still need a good chunk of the logic 
> to handle opening half-storefile reader throw a hfilelink.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-7419) revisit hfilelink file name format.

2013-01-07 Thread Matteo Bertozzi (JIRA)

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

Matteo Bertozzi updated HBASE-7419:
---

Attachment: HBASE-7419-v3.patch

> revisit hfilelink file name format.
> ---
>
> Key: HBASE-7419
> URL: https://issues.apache.org/jira/browse/HBASE-7419
> Project: HBase
>  Issue Type: Sub-task
>  Components: Client, master, regionserver, snapshots, Zookeeper
>Reporter: Jonathan Hsieh
>Assignee: Matteo Bertozzi
> Fix For: hbase-6055, 0.96.0
>
> Attachments: HBASE-7419-v0.patch, HBASE-7419-v1.patch, 
> HBASE-7419-v2.patch, HBASE-7419-v3.patch
>
>
> Valid table names are concatted with a '.' to a valid regions names is also a 
> valid table name, and lead to the incorrect interpretation.
> {code}
> true hfile name constraints: [0-9]+(?:_SeqID_[0-9]+)?
> region name constraints: [a-f0-9]{16}  (but we currently just use 
> [a-f0-9]+.)
> table name constraints : [a-zA-Z0-9_][a-zA-Z0-9_.-]*
> {code}
> Notice that the table name constraints completely covers all region name 
> constraints and true hfile name constraints.   (a valid hfile name is a valid 
> part of a table name, and a valid enc region name is a valid part of a table 
> name.
> Currently the hfilelink filename convention is --.  
> Unfortunately, making a ref to this uses the name 
> --. -- the contactnation of 
> . is a valid table name used to get interpreted as such. 
>  The fix in HBASE-7339 requires a FileNotFoundException before going down the 
> hfile link resolution path. 
> Regardless of what we do, we need to add some char invalid for table names to 
> the hfilelink or reference filename convention.
> Suggestion: if we changed the order of the hfile-link name we could avoid 
> some of the confusion -- @-. (or some 
> other separator char than '@') could be used to avoid handling on the initial 
> filenotfoundexception but I think we'd still need a good chunk of the logic 
> to handle opening half-storefile reader throw a hfilelink.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-7419) revisit hfilelink file name format.

2013-01-07 Thread Matteo Bertozzi (JIRA)

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

Matteo Bertozzi updated HBASE-7419:
---

Attachment: HBASE-7419-v2.patch

v2 is same patch as before reverting the changes in Reference.java no longer 
needed.

Will commit unless there are objections.

> revisit hfilelink file name format.
> ---
>
> Key: HBASE-7419
> URL: https://issues.apache.org/jira/browse/HBASE-7419
> Project: HBase
>  Issue Type: Sub-task
>  Components: Client, master, regionserver, snapshots, Zookeeper
>Reporter: Jonathan Hsieh
>Assignee: Matteo Bertozzi
> Fix For: hbase-6055, 0.96.0
>
> Attachments: HBASE-7419-v0.patch, HBASE-7419-v1.patch, 
> HBASE-7419-v2.patch
>
>
> Valid table names are concatted with a '.' to a valid regions names is also a 
> valid table name, and lead to the incorrect interpretation.
> {code}
> true hfile name constraints: [0-9]+(?:_SeqID_[0-9]+)?
> region name constraints: [a-f0-9]{16}  (but we currently just use 
> [a-f0-9]+.)
> table name constraints : [a-zA-Z0-9_][a-zA-Z0-9_.-]*
> {code}
> Notice that the table name constraints completely covers all region name 
> constraints and true hfile name constraints.   (a valid hfile name is a valid 
> part of a table name, and a valid enc region name is a valid part of a table 
> name.
> Currently the hfilelink filename convention is --.  
> Unfortunately, making a ref to this uses the name 
> --. -- the contactnation of 
> . is a valid table name used to get interpreted as such. 
>  The fix in HBASE-7339 requires a FileNotFoundException before going down the 
> hfile link resolution path. 
> Regardless of what we do, we need to add some char invalid for table names to 
> the hfilelink or reference filename convention.
> Suggestion: if we changed the order of the hfile-link name we could avoid 
> some of the confusion -- @-. (or some 
> other separator char than '@') could be used to avoid handling on the initial 
> filenotfoundexception but I think we'd still need a good chunk of the logic 
> to handle opening half-storefile reader throw a hfilelink.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-7419) revisit hfilelink file name format.

2013-01-05 Thread Matteo Bertozzi (JIRA)

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

Matteo Bertozzi updated HBASE-7419:
---

Attachment: HBASE-7419-v1.patch

> revisit hfilelink file name format.
> ---
>
> Key: HBASE-7419
> URL: https://issues.apache.org/jira/browse/HBASE-7419
> Project: HBase
>  Issue Type: Sub-task
>  Components: Client, master, regionserver, snapshots, Zookeeper
>Reporter: Jonathan Hsieh
>Assignee: Matteo Bertozzi
> Fix For: hbase-6055, 0.96.0
>
> Attachments: HBASE-7419-v0.patch, HBASE-7419-v1.patch
>
>
> Valid table names are concatted with a '.' to a valid regions names is also a 
> valid table name, and lead to the incorrect interpretation.
> {code}
> true hfile name constraints: [0-9]+(?:_SeqID_[0-9]+)?
> region name constraints: [a-f0-9]{16}  (but we currently just use 
> [a-f0-9]+.)
> table name constraints : [a-zA-Z0-9_][a-zA-Z0-9_.-]*
> {code}
> Notice that the table name constraints completely covers all region name 
> constraints and true hfile name constraints.   (a valid hfile name is a valid 
> part of a table name, and a valid enc region name is a valid part of a table 
> name.
> Currently the hfilelink filename convention is --.  
> Unfortunately, making a ref to this uses the name 
> --. -- the contactnation of 
> . is a valid table name used to get interpreted as such. 
>  The fix in HBASE-7339 requires a FileNotFoundException before going down the 
> hfile link resolution path. 
> Regardless of what we do, we need to add some char invalid for table names to 
> the hfilelink or reference filename convention.
> Suggestion: if we changed the order of the hfile-link name we could avoid 
> some of the confusion -- @-. (or some 
> other separator char than '@') could be used to avoid handling on the initial 
> filenotfoundexception but I think we'd still need a good chunk of the logic 
> to handle opening half-storefile reader throw a hfilelink.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-7419) revisit hfilelink file name format.

2012-12-31 Thread Matteo Bertozzi (JIRA)

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

Matteo Bertozzi updated HBASE-7419:
---

Attachment: HBASE-7419-v0.patch

test patch, just to get an idea of a possible implementation, I still haven't 
tried it on jenkins (just TestStoreFile), or on a real snapshot test (just few 
puts and split).

I've used the new naming table@region-hfile and the reference to a link now 
shows as a reference to the user of storeFile.isReference()

> revisit hfilelink file name format.
> ---
>
> Key: HBASE-7419
> URL: https://issues.apache.org/jira/browse/HBASE-7419
> Project: HBase
>  Issue Type: Sub-task
>  Components: Client, master, regionserver, snapshots, Zookeeper
>Reporter: Jonathan Hsieh
>Assignee: Matteo Bertozzi
> Fix For: hbase-6055, 0.96.0
>
> Attachments: HBASE-7419-v0.patch
>
>
> Valid table names are concatted with a '.' to a valid regions names is also a 
> valid table name, and lead to the incorrect interpretation.
> {code}
> true hfile name constraints: [0-9]+(?:_SeqID_[0-9]+)?
> region name constraints: [a-f0-9]{16}  (but we currently just use 
> [a-f0-9]+.)
> table name constraints : [a-zA-Z0-9_][a-zA-Z0-9_.-]*
> {code}
> Notice that the table name constraints completely covers all region name 
> constraints and true hfile name constraints.   (a valid hfile name is a valid 
> part of a table name, and a valid enc region name is a valid part of a table 
> name.
> Currently the hfilelink filename convention is --.  
> Unfortunately, making a ref to this uses the name 
> --. -- the contactnation of 
> . is a valid table name used to get interpreted as such. 
>  The fix in HBASE-7339 requires a FileNotFoundException before going down the 
> hfile link resolution path. 
> Regardless of what we do, we need to add some char invalid for table names to 
> the hfilelink or reference filename convention.
> Suggestion: if we changed the order of the hfile-link name we could avoid 
> some of the confusion -- @-. (or some 
> other separator char than '@') could be used to avoid handling on the initial 
> filenotfoundexception but I think we'd still need a good chunk of the logic 
> to handle opening half-storefile reader throw a hfilelink.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira