You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Evgeny Ryabitskiy (JIRA)" <ji...@apache.org> on 2009/06/15 21:42:07 UTC
[jira] Commented: (HBASE-1525) HTable.incrementColumnValue hangs()
[ https://issues.apache.org/jira/browse/HBASE-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719733#action_12719733 ]
Evgeny Ryabitskiy commented on HBASE-1525:
------------------------------------------
ah.. yeah... good find!
> HTable.incrementColumnValue hangs()
> ------------------------------------
>
> Key: HBASE-1525
> URL: https://issues.apache.org/jira/browse/HBASE-1525
> Project: Hadoop HBase
> Issue Type: Bug
> Components: regionserver
> Affects Versions: 0.20.0
> Environment: ubuntu 9.04
> jdk 1.6.0.13
> hadoop 0.20.0
> hbase 0.20.0-dev [trunk]
> Reporter: Irfan Mohammed
> Attachments: 1525.patch, client_dump.out, hbase-irfan-master-damascus.out
>
>
> In the following code,
> @Test
> public void usingIncrement() throws Exception
> {
> long siteId = 1234;
> long publisherId = 5678;
> Date eventTime = DATE_INPUT_FORMAT.parse("2009-06-15 13:08:54");
>
> long[] metrics = new long[] { 10, 22, 32 };
>
> byte[] rowKey = Bytes.toBytes(siteId + "_" + ROW_KEY_FORMAT.format(eventTime));
> byte[] family = Bytes.toBytes(FAMILY_PUBLISHER);
> byte[] qualifier = Bytes.toBytes(publisherId);
>
> HTable table = getTable();
>
> for (int i1 = 0, n1 = metrics.length; n1 > 0; i1++, n1--) {
> LOGGER.info("processing [{0}] ...", i1);
> table.incrementColumnValue(rowKey, family, qualifier, metrics[i1]);
> LOGGER.info("processing [{0}] completed", i1);
> }
>
> table.close();
> queryMetrics(table, siteId, publisherId, eventTime);
> }
> The call table.incrementColumnValue hangs. Have to kill the hbase client and the master processes to get around the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.