[ISSUE] (TEPHRA-120) Add a smoke test to demostrate client usage and test cluster setup

4 views
Skip to first unread message

Gary Helmling (JIRA)

unread,
Aug 12, 2015, 2:20:20 PM8/12/15
to tephr...@googlegroups.com
Gary Helmling created an issue
 
Tephra / New Feature TEPHRA-120
Add a smoke test to demostrate client usage and test cluster setup
Issue Type: New Feature New Feature
Assignee: Gary Helmling
Created: 12/Aug/15 11:20 AM
Priority: Major Major
Reporter: Gary Helmling

Tephra should ship with a sample application to both illustrate how clients can make use of the APIs, and to test that a given cluster is operating correctly.

We can provide a simple application the exercises a number of concurrent client threads which will compete to make withdrawals from each other's "account" rows and deposit the same amount to their own accounts. This should naturally incur transaction conflicts as clients select the same account for withdrawals or deposits. At the end of the test, it is also easy to verify that transactionality integrity was maintained – we can simply sum up the total of all account balances. If the transactional integrity was maintained, the total of all balances should be zero.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.1.5#6160-sha1:a61a0fc)
Atlassian logo

Gary Helmling (JIRA)

unread,
Aug 12, 2015, 2:44:20 PM8/12/15
to tephr...@googlegroups.com
Tephra should ship with a sample application to both illustrate how clients can make use of the APIs, and to test that a given cluster is operating correctly.

We can provide a simple application the exercises a number of concurrent client threads which will compete to make withdrawals from each other's "account" rows and deposit the same amount to thei...

Poorna Chandra (JIRA)

unread,
Aug 31, 2015, 4:44:21 PM8/31/15
to tephr...@googlegroups.com
Poorna Chandra commented on an issue

From the above PR -

Currently the tephra-examples module is hardcoded to depend on tephra-hbase-compat-1.0-cdh. This allows it to be easily integrated, but it would be better if users could compile the examples against whatever version of HBase they are using. We could accomplish this as a future enhancement by:

  • adding a TableFactory class which implements HBaseVersionSpecificFactory. This would sit in tephra-core and be used by the examples to obtain the correct version of TransactionAwareHTable for the HBase version being used
  • add Maven profiles to tephra-examples for each of the supported HBase versions. The user could then compile the examples code against whatever version of HBase is being run.

Filed JIRA https://issues.cask.co/browse/TEPHRA-126 to track the above future work.

Reply all
Reply to author
Forward
0 new messages