[jira] [Created] (HBASE-12800) HBase Regionserver very easy to die

2015-01-03 Thread gao (JIRA)
gao created HBASE-12800:
---

 Summary: HBase Regionserver very easy to die
 Key: HBASE-12800
 URL: https://issues.apache.org/jira/browse/HBASE-12800
 Project: HBase
  Issue Type: Bug
 Environment: hbase 0.96.1.1
Reporter: gao


Hi:
I am getting constant stability problems with the HBase Regionserver, it dies 
randomly everyday or every other day. It normally dies shortly after printing 
the following:

2014-12-30 23:06:17,091 ERROR [regionserver60020.logRoller] 
wal.ProtobufLogWriter: Got IOException while writing trailer
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File 
/hbase/WALs/zjdx107,60020,1418269148759/zjdx107%2C60020%2C1418269148759.1419977176935
 could only be replicated to 0 nodes instead of minReplication (=1).  There are 
12 datanode(s) running and no node(s) are excluded in this operation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (HBASE-12801) Failed to truncate a table while maintaing binary region boundaries

2015-01-03 Thread Liu Shaohui (JIRA)
Liu Shaohui created HBASE-12801:
---

 Summary: Failed to truncate a table while maintaing binary region 
boundaries
 Key: HBASE-12801
 URL: https://issues.apache.org/jira/browse/HBASE-12801
 Project: HBase
  Issue Type: Bug
  Components: shell
Affects Versions: 0.94.11
Reporter: Liu Shaohui
Assignee: Liu Shaohui
Priority: Minor


Binary region boundaries become wrong during 
converting byte array to normal string, and back to byte array in 
truncate_preserve of admin.rb, which makes the truncation of table failed.

See: truncate_preserve method in admin.rb
{code}
 splits = h_table.getRegionLocations().keys().map{|i| 
Bytes.toString(i.getStartKey)}.delete_if{|k| k == }.to_java :String
 splits = org.apache.hadoop.hbase.util.Bytes.toByteArrays(splits)
{code}
eg:
{code}
\xFA\x00\x00\x00\x00\x00\x00\x00 -  \xEF\xBF\xBD\x00\x00\x00\x00\x00\x00\x00
\xFC\x00\x00\x00\x00\x00\x00\x00 - \xEF\xBF\xBD\x00\x00\x00\x00\x00\x00\x00
{code}

Simple patch is using binary string instead of normal string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)