You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Clint Morgan (JIRA)" <ji...@apache.org> on 2009/05/13 21:18:46 UTC
[jira] Created: (HBASE-1418) Transacitonal improvments and fixes
Transacitonal improvments and fixes
-----------------------------------
Key: HBASE-1418
URL: https://issues.apache.org/jira/browse/HBASE-1418
Project: Hadoop HBase
Issue Type: Improvement
Components: client, regionserver
Reporter: Clint Morgan
Fix For: 0.19.2
A number of improvements and fixes to the transactional server:
- Use a lease listener to detect and remove dead transactions
- Handle splitting/closing during transactions
- improve 2-phase commit protocol to save some traffic for read only commits
- expose as a JTA resource so we can work with other transactional resources
- additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1418) Transacitonal improvments and fixes
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716758#action_12716758 ]
stack commented on HBASE-1418:
------------------------------
It would be good if you could do a THLogKey with the extra fields. When THBase is running, it writes THLogKeys whether transaction or not. Would be grand if extra stuff was only present in the THBase subclass, not up in core (Someone else up on list was interested in being able to record their own key/values in commit log so i'd be interested in helping out making this subclassable).
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.20.0
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan updated HBASE-1418:
--------------------------------
Attachment: 1418-0.19-v2.diff
Previous patch worked when applied from eclipse, but not command-line. I had been manually picking some things out, so must have messed something up. Here is clean patch
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Fix For: 0.19.2
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan reopened HBASE-1418:
---------------------------------
Assignee: Clint Morgan
reopening for trunk patch, which is ready to go.
I still need to finish the transactional logging and re-enable the test, which I'll do at a later date..
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.19.3
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1418) Transacitonal improvments and fixes
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-1418:
-------------------------
Fix Version/s: (was: 0.19.3)
0.20.0
Moved to 0.20.0. Its been applied to branch. Has some questions for Clint to answer first though.
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.20.0
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan updated HBASE-1418:
--------------------------------
Attachment: 1418-0.19.diff
patch for 0.19 branch. Will revisit trunk shortly.
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Fix For: 0.19.2
>
> Attachments: 1418-0.19.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1418) Transacitonal improvments and fixes
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709628#action_12709628 ]
stack commented on HBASE-1418:
------------------------------
Clint. I applied. It builds. I took a quick look and all looked good to me especially the fixes to make hbase subclassable. One thing I was wondering was in your choice of KeyValue types (thanks for fixing the getType); will you ever need to delete the transactional states or do they live above all that humdrum business of putting and deleting? Also, are these transaction markers only in HLog? If so, wouldn't it make more sense added these meta attributes to HLogKey subclass?
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.19.3
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1418) Transacitonal improvments and fixes
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709120#action_12709120 ]
stack commented on HBASE-1418:
------------------------------
Clint, I get this when I try to apply it:
{code}
durruti:0.19 stack$ patch -p0 < ~/Desktop/1418-0.19.diff
patching file src/java/org/apache/hadoop/hbase/regionserver/tableindexed/IndexedRegion.java
patch: **** malformed patch at line 23: Index: src/java/org/apache/hadoop/hbase/regionserver/tableindexed/IndexedRegionServer.java
{code}
Does it work for you?
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Fix For: 0.19.2
>
> Attachments: 1418-0.19.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan updated HBASE-1418:
--------------------------------
Fix Version/s: (was: 0.20.0)
0.19.3
Closing this, and opening a new issue to bring back transaction/indexing in 0.20
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.19.3
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk-v2.patch, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan resolved HBASE-1418.
---------------------------------
Resolution: Fixed
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.19.3
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk-v2.patch, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1418) Transacitonal improvments and fixes
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709141#action_12709141 ]
stack commented on HBASE-1418:
------------------------------
Doesn't build Clint:
{code}
[javac] Compiling 240 source files to /Users/stack/checkouts/hbase/branches/0.19/build/classes
[javac] /Users/stack/checkouts/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java:46: cannot find symbol
[javac] symbol : class JtaXAResource
[javac] location: class org.apache.hadoop.hbase.client.transactional.TransactionManager
[javac] private JtaXAResource xAResource;
[javac] ^
[javac] /Users/stack/checkouts/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java:236: cannot find symbol
[javac] symbol : class JtaXAResource
[javac] location: class org.apache.hadoop.hbase.client.transactional.TransactionManager
[javac] public synchronized JtaXAResource getXAResource() {
[javac] ^
[javac] /Users/stack/checkouts/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java:238: cannot find symbol
[javac] symbol : class JtaXAResource
[javac] location: class org.apache.hadoop.hbase.client.transactional.TransactionManager
[javac] xAResource = new JtaXAResource(this);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
{code}
JXTA!!!?
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Fix For: 0.19.2
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan updated HBASE-1418:
--------------------------------
Attachment: 1418-trunk-v2.patch
Ok, seems pretty doable to subclass HLog and isolate my changes. This patch is part of the way there, but not ready yet...
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.20.0
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk-v2.patch, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716754#action_12716754 ]
Clint Morgan commented on HBASE-1418:
-------------------------------------
Yeah, the transaction markers exist only in the HLog. In 0.19 I had that stuff in HLogEdit, now that seems to have been replaced by KeyValue (as the value in HLog). Agree that the transactional ops don't belong in KV, I'll look at putting them in HLogKey. Not sure if sublcassing is a good way to go because I don't think SequenceFile.write supports polymophism in the keys/values. So probably I'll just put some extra fields in HLogKey.
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Assignee: Clint Morgan
> Fix For: 0.20.0
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-1418) Transacitonal improvments and fixes
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-1418.
--------------------------
Resolution: Fixed
Fix Version/s: (was: 0.19.2)
0.19.3
Applied to branch. Thanks Clint. You going to make a new patch to put this stuff in TRUNK?
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Fix For: 0.19.3
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan updated HBASE-1418:
--------------------------------
Attachment: 1418-0.19-v3.diff
Sorry. Forgot to svn add. This one should work
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Fix For: 0.19.2
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1418) Transacitonal improvments and fixes
Posted by "Clint Morgan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clint Morgan updated HBASE-1418:
--------------------------------
Attachment: 1418-trunk.diff
patch for trunk. Includes reworking of the transactional logging stuff to work with KeyValues in the HLog.
> Transacitonal improvments and fixes
> -----------------------------------
>
> Key: HBASE-1418
> URL: https://issues.apache.org/jira/browse/HBASE-1418
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: client, regionserver
> Reporter: Clint Morgan
> Fix For: 0.19.3
>
> Attachments: 1418-0.19-v2.diff, 1418-0.19-v3.diff, 1418-0.19.diff, 1418-trunk.diff
>
>
> A number of improvements and fixes to the transactional server:
> - Use a lease listener to detect and remove dead transactions
> - Handle splitting/closing during transactions
> - improve 2-phase commit protocol to save some traffic for read only commits
> - expose as a JTA resource so we can work with other transactional resources
> - additional logging
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.