RE: HBase file encryption, inconsistencies observed and data loss

2014-07-30 Thread Kiran Kumar.M.R
:36 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed and data loss Yes in btw the restart the config was changed. In steps the #4 was that. Wal encryption config is changed to false. Well that is ok but the reader can not be changed. Because we dont find

RE: HBase file encryption, inconsistencies observed and data loss

2014-07-30 Thread Kiran Kumar.M.R
Hi, After step 4 ( i.e disabling of WAL encryption, removing SecureProtobufReader/Writer and restart), read of encrypted WAL fails mainly due to EOF exception at Basedecoder. This is not considered as error and these WAL are being moved to /oldWALs. Following is observed in log files:

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-30 Thread Ted Yu
Looking at HLogSplitter#getNextLogLine() : try { return in.next(); } catch (EOFException eof) { // truncated files are expected if a RS crashes (see HBASE-2643) LOG.info(EOF from hlog + path + . continuing); return null; The EOFException is not treated as

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-30 Thread Ted Yu
In BaseDecoder#rethrowEofException() : if (!isEof) throw ioEx; LOG.error(Partial cell read caused by EOF: + ioEx); EOFException eofEx = new EOFException(Partial cell read); eofEx.initCause(ioEx); throw eofEx; throwing EOFException would not propagate the Partial cell

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-30 Thread Andrew Purtell
Let's take this to JIRA On Wed, Jul 30, 2014 at 12:50 PM, Ted Yu yuzhih...@gmail.com wrote: In BaseDecoder#rethrowEofException() : if (!isEof) throw ioEx; LOG.error(Partial cell read caused by EOF: + ioEx); EOFException eofEx = new EOFException(Partial cell read);

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-30 Thread Ted Yu
I logged HBASE-11620 for this issue. If my proposal is accepted, I can provide a patch. Cheers On Wed, Jul 30, 2014 at 12:56 PM, Andrew Purtell apurt...@apache.org wrote: Let's take this to JIRA On Wed, Jul 30, 2014 at 12:50 PM, Ted Yu yuzhih...@gmail.com wrote: In

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-28 Thread Anoop John
immediately and delete it! -Original Message- From: andrew.purt...@gmail.com [mailto:andrew.purt...@gmail.com andrew.purt...@gmail.com] On Behalf Of Andrew Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-28 Thread Andrew Purtell
[mailto:andrew.purt...@gmail.com andrew.purt...@gmail.com] On Behalf Of Andrew Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed and data loss Encryption (or the lack of it) doesn't explain missing HFiles

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-27 Thread Anoop John
Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed and data loss Encryption (or the lack of it) doesn't explain missing HFiles. Most likely if you are having a problem with encryption, this will manifest

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-27 Thread ramkrishna vasudevan
July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed and data loss Encryption (or the lack of it) doesn't explain missing HFiles. Most likely if you are having a problem with encryption, this will manifest

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-27 Thread Anoop John
it! -Original Message- From: andrew.purt...@gmail.com [mailto:andrew.purt...@gmail.com andrew.purt...@gmail.com] On Behalf Of Andrew Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-27 Thread Andrew Purtell
- From: andrew.purt...@gmail.com [mailto:andrew.purt...@gmail.com andrew.purt...@gmail.com] On Behalf Of Andrew Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed and data loss Encryption (or the lack

RE: HBase file encryption, inconsistencies observed and data loss

2014-07-26 Thread Shankar hiremath
the sender by phone or email immediately and delete it! -Original Message- From: andrew.purt...@gmail.com [mailto:andrew.purt...@gmail.com] On Behalf Of Andrew Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed and data

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-26 Thread Andrew Purtell
- From: andrew.purt...@gmail.com [mailto:andrew.purt...@gmail.com] On Behalf Of Andrew Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed and data loss Encryption (or the lack of it) doesn't explain missing HFiles

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-26 Thread Andrew Purtell
immediately and delete it! -Original Message- From: andrew.purt...@gmail.com [mailto:andrew.purt...@gmail.com andrew.purt...@gmail.com] On Behalf Of Andrew Purtell Sent: 26 July 2014 AM 02:21 To: user@hbase.apache.org Subject: Re: HBase file encryption, inconsistencies observed

Re: HBase file encryption, inconsistencies observed and data loss

2014-07-25 Thread Andrew Purtell
Encryption (or the lack of it) doesn't explain missing HFiles. Most likely if you are having a problem with encryption, this will manifest as follows: HFiles will be present. However, you will find many IOExceptions in the regionserver logs as they attempt to open the HFiles but fail because the