You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kudu.apache.org by Jason Heo <ja...@gmail.com> on 2017/04/22 09:11:35 UTC
tserver died during bulk indexing and dies again after restarting
Hi.
I'm using Apache Kudu 1.2.
One of tservers has been dead during bulk indexing. Here is the log of the
dead tserver.
Can I know that's the problem and how to start tserver?
==============================
$ tail -f kudu-tserver.WARNING
Log file created at: 2017/04/22 14:44:59
Running on machine: hostname
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0422 14:44:59.401752 124050 consensus_queue.cc:415] T
7db58ed040b24faf9dac3cd729e98d74 P 58fce39a905b4971b1951929ba30fe30
[LEADER]: Error trying to read ahead of the log while preparing peer
request: Incomplete: Op with index 16588 is ahead of the local log (next
sequential op: 16588). Destination peer: Peer:
0abff808ff3e4248a9ddd97b01910e6c, Is new: false, Last received: 1.16588,
Next index: 16589, Last known committed idx: 16586, Last exchange result:
SUCCESS, Needs tablet copy: false
F0422 14:44:59.624615 125459 transaction_driver.cc:358] T
30aaccdf7c8c496a8ad73255856a1724 P 58fce39a905b4971b1951929ba30fe30 S RD-NP
Ts 6114672227972882432: Cannot cancel transactions that have already
replicated: Invalid argument: Cannot decode client schema: Duplicate column
name: id transaction:RD-NP WriteTransaction [type=REPLICA,
start_time=2017-04-22 14:44:59, state=WriteTransactionState 0xd46f49c0
[op_id=(term: 1 index: 16758), ts=6114672227972882432, rows=[]]]
=========================
If I start tserver, it dies again.
============
tail -f kudu-tserver.INFO
Log file created at: 2017/04/22 18:06:19
Running on machine: hostname
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
F0422 18:06:19.268718 7058 transaction_driver.cc:358] T
30aaccdf7c8c496a8ad73255856a1724 P 58fce39a905b4971b1951929ba30fe30 S R-NP
Ts 6114672227972882432: Cannot cancel transactions that have already
replicated: Invalid argument: Cannot decode client schema: Duplicate column
name: id transaction:R-NP WriteTransaction [type=REPLICA,
start_time=2017-04-22 18:06:19, state=WriteTransactionState 0x57049c0
[op_id=(term: 1 index: 16758), ts=6114672227972882432, rows=[]]]
===============
Thanks,
Jason
Re: tserver died during bulk indexing and dies again after restarting
Posted by Todd Lipcon <to...@cloudera.com>.
One other idea: if you can share a *redacted* WAL dump, that might also
help us understand the issue. For example:
$ kudu wal dump /data/1/kudu/wals/<tablet-id>/wal-000000001 --redact=all |
gzip - > /tmp/wal.txt.gz
The "--redact" flag will ensure that no cell data is present in the WAL.
For example, from one of our test clusters:
op 33: INSERT (int64 ps_partkey=<redacted>, int64
ps_suppkey=<redacted>, int64 ps_availqty=<redacted>, double
ps_supplycost=<redacted>, string ps_comment=<redacted>)
You can view the resulting wal.txt.gz file before sending it to confirm
that nothing sensitive is included.
Thanks
-Todd
On Mon, Apr 24, 2017 at 10:39 AM, David Alves <da...@gmail.com> wrote:
> Hi Jason
>
> No problem. Sorry if I misunderstood your previous email.
> If you could share the log files themselves that would be great, if not,
> that's ok too.
> You could use the kudu tool to delete the local replica for that tablet
> (without a running tserver daemon), but its likely that it's been gone a
> while and kicked out of most if not all consensus config, at which point,
> if all you data is available you could just delete the data and re-add it
> to the cluster.
>
> Best
> David
>
>
> On Mon, Apr 24, 2017 at 4:33 AM, Jason Heo <ja...@gmail.com>
> wrote:
>
>> Hi David.
>>
>> Thank you for your kind reply.
>>
>> I understood but I'm afraid I can't provide my WAL because it has
>> sensitive data, even via your private email.
>>
>> Regards,
>>
>> Jason
>>
>> 2017-04-24 15:12 GMT+09:00 David Alves <da...@gmail.com>:
>>
>>> Hi Jason
>>>
>>> I meant the last wal segment for the 30aaccdf7c8c496a8ad73255856a1724
>>> tablet on the dead server (if you don't have sensitive data in there)
>>> Not sure whether you specified the flag: "--fs_wal_dir". If so it
>>> should be in there, if not the wals are in the same dir as the value set
>>> for "--fs_data_dirs".
>>> A wal file has a name like: "wal-000000001"
>>>
>>> Best
>>> David
>>>
>>>
>>> On Sat, Apr 22, 2017 at 7:46 PM, Jason Heo <ja...@gmail.com>
>>> wrote:
>>>
>>>> Hi David.
>>>>
>>>> Sorry for the insufficient information.
>>>>
>>>> There are 14 nodes in my test kudu cluster. Only one tserver has been
>>>> dead. It has only above two logs.
>>>>
>>>> Other 13 nodes has "Error trying to read ahead of the log while
>>>> preparing peer request: Incomplete: Op with" error 7~10 times.
>>>>
>>>> >> *Would it be possible to also get the WAL with the corrupted entry?*
>>>>
>>>> Would you please explain how to get it in more detail?
>>>>
>>>> I tried what I did again and again to reproduce same error, but it
>>>> didn't happen again.
>>>>
>>>> Please feel free to ask me for anything what you need to resolve.
>>>>
>>>> Regards,
>>>>
>>>> Jason
>>>>
>>>> 2017-04-23 1:56 GMT+09:00 <da...@gmail.com>:
>>>>
>>>>> Hi Jason
>>>>>
>>>>> Anything else of interest in those logs? Can you share them (with
>>>>> just me, if you prefer)? Would it be possible to also get the WAL with
>>>>> the corrupted entry?
>>>>> Did this happen on a single server?
>>>>>
>>>>> Best
>>>>> David
>>>>>
>>>>
>>>>
>>>
>>
>
--
Todd Lipcon
Software Engineer, Cloudera
Re: tserver died during bulk indexing and dies again after restarting
Posted by Jason Heo <ja...@gmail.com>.
Hi David.
>> *Sorry if I misunderstood your previous email.*
Never mind it. I meant, I couldn't understand your first email and
understood second email ;)
Thanks,
Jason
2017-04-25 2:39 GMT+09:00 David Alves <da...@gmail.com>:
> Hi Jason
>
> No problem. Sorry if I misunderstood your previous email.
> If you could share the log files themselves that would be great, if not,
> that's ok too.
> You could use the kudu tool to delete the local replica for that tablet
> (without a running tserver daemon), but its likely that it's been gone a
> while and kicked out of most if not all consensus config, at which point,
> if all you data is available you could just delete the data and re-add it
> to the cluster.
>
> Best
> David
>
>
> On Mon, Apr 24, 2017 at 4:33 AM, Jason Heo <ja...@gmail.com>
> wrote:
>
>> Hi David.
>>
>> Thank you for your kind reply.
>>
>> I understood but I'm afraid I can't provide my WAL because it has
>> sensitive data, even via your private email.
>>
>> Regards,
>>
>> Jason
>>
>> 2017-04-24 15:12 GMT+09:00 David Alves <da...@gmail.com>:
>>
>>> Hi Jason
>>>
>>> I meant the last wal segment for the 30aaccdf7c8c496a8ad73255856a1724
>>> tablet on the dead server (if you don't have sensitive data in there)
>>> Not sure whether you specified the flag: "--fs_wal_dir". If so it
>>> should be in there, if not the wals are in the same dir as the value set
>>> for "--fs_data_dirs".
>>> A wal file has a name like: "wal-000000001"
>>>
>>> Best
>>> David
>>>
>>>
>>> On Sat, Apr 22, 2017 at 7:46 PM, Jason Heo <ja...@gmail.com>
>>> wrote:
>>>
>>>> Hi David.
>>>>
>>>> Sorry for the insufficient information.
>>>>
>>>> There are 14 nodes in my test kudu cluster. Only one tserver has been
>>>> dead. It has only above two logs.
>>>>
>>>> Other 13 nodes has "Error trying to read ahead of the log while
>>>> preparing peer request: Incomplete: Op with" error 7~10 times.
>>>>
>>>> >> *Would it be possible to also get the WAL with the corrupted entry?*
>>>>
>>>> Would you please explain how to get it in more detail?
>>>>
>>>> I tried what I did again and again to reproduce same error, but it
>>>> didn't happen again.
>>>>
>>>> Please feel free to ask me for anything what you need to resolve.
>>>>
>>>> Regards,
>>>>
>>>> Jason
>>>>
>>>> 2017-04-23 1:56 GMT+09:00 <da...@gmail.com>:
>>>>
>>>>> Hi Jason
>>>>>
>>>>> Anything else of interest in those logs? Can you share them (with
>>>>> just me, if you prefer)? Would it be possible to also get the WAL with
>>>>> the corrupted entry?
>>>>> Did this happen on a single server?
>>>>>
>>>>> Best
>>>>> David
>>>>>
>>>>
>>>>
>>>
>>
>
Re: tserver died during bulk indexing and dies again after restarting
Posted by David Alves <da...@gmail.com>.
Hi Jason
No problem. Sorry if I misunderstood your previous email.
If you could share the log files themselves that would be great, if not,
that's ok too.
You could use the kudu tool to delete the local replica for that tablet
(without a running tserver daemon), but its likely that it's been gone a
while and kicked out of most if not all consensus config, at which point,
if all you data is available you could just delete the data and re-add it
to the cluster.
Best
David
On Mon, Apr 24, 2017 at 4:33 AM, Jason Heo <ja...@gmail.com> wrote:
> Hi David.
>
> Thank you for your kind reply.
>
> I understood but I'm afraid I can't provide my WAL because it has
> sensitive data, even via your private email.
>
> Regards,
>
> Jason
>
> 2017-04-24 15:12 GMT+09:00 David Alves <da...@gmail.com>:
>
>> Hi Jason
>>
>> I meant the last wal segment for the 30aaccdf7c8c496a8ad73255856a1724
>> tablet on the dead server (if you don't have sensitive data in there)
>> Not sure whether you specified the flag: "--fs_wal_dir". If so it
>> should be in there, if not the wals are in the same dir as the value set
>> for "--fs_data_dirs".
>> A wal file has a name like: "wal-000000001"
>>
>> Best
>> David
>>
>>
>> On Sat, Apr 22, 2017 at 7:46 PM, Jason Heo <ja...@gmail.com>
>> wrote:
>>
>>> Hi David.
>>>
>>> Sorry for the insufficient information.
>>>
>>> There are 14 nodes in my test kudu cluster. Only one tserver has been
>>> dead. It has only above two logs.
>>>
>>> Other 13 nodes has "Error trying to read ahead of the log while
>>> preparing peer request: Incomplete: Op with" error 7~10 times.
>>>
>>> >> *Would it be possible to also get the WAL with the corrupted entry?*
>>>
>>> Would you please explain how to get it in more detail?
>>>
>>> I tried what I did again and again to reproduce same error, but it
>>> didn't happen again.
>>>
>>> Please feel free to ask me for anything what you need to resolve.
>>>
>>> Regards,
>>>
>>> Jason
>>>
>>> 2017-04-23 1:56 GMT+09:00 <da...@gmail.com>:
>>>
>>>> Hi Jason
>>>>
>>>> Anything else of interest in those logs? Can you share them (with
>>>> just me, if you prefer)? Would it be possible to also get the WAL with
>>>> the corrupted entry?
>>>> Did this happen on a single server?
>>>>
>>>> Best
>>>> David
>>>>
>>>
>>>
>>
>
Re: tserver died during bulk indexing and dies again after restarting
Posted by Jason Heo <ja...@gmail.com>.
Hi David.
Thank you for your kind reply.
I understood but I'm afraid I can't provide my WAL because it has sensitive
data, even via your private email.
Regards,
Jason
2017-04-24 15:12 GMT+09:00 David Alves <da...@gmail.com>:
> Hi Jason
>
> I meant the last wal segment for the 30aaccdf7c8c496a8ad73255856a1724
> tablet on the dead server (if you don't have sensitive data in there)
> Not sure whether you specified the flag: "--fs_wal_dir". If so it should
> be in there, if not the wals are in the same dir as the value set for
> "--fs_data_dirs".
> A wal file has a name like: "wal-000000001"
>
> Best
> David
>
>
> On Sat, Apr 22, 2017 at 7:46 PM, Jason Heo <ja...@gmail.com>
> wrote:
>
>> Hi David.
>>
>> Sorry for the insufficient information.
>>
>> There are 14 nodes in my test kudu cluster. Only one tserver has been
>> dead. It has only above two logs.
>>
>> Other 13 nodes has "Error trying to read ahead of the log while
>> preparing peer request: Incomplete: Op with" error 7~10 times.
>>
>> >> *Would it be possible to also get the WAL with the corrupted entry?*
>>
>> Would you please explain how to get it in more detail?
>>
>> I tried what I did again and again to reproduce same error, but it didn't
>> happen again.
>>
>> Please feel free to ask me for anything what you need to resolve.
>>
>> Regards,
>>
>> Jason
>>
>> 2017-04-23 1:56 GMT+09:00 <da...@gmail.com>:
>>
>>> Hi Jason
>>>
>>> Anything else of interest in those logs? Can you share them (with
>>> just me, if you prefer)? Would it be possible to also get the WAL with
>>> the corrupted entry?
>>> Did this happen on a single server?
>>>
>>> Best
>>> David
>>>
>>
>>
>
Re: tserver died during bulk indexing and dies again after restarting
Posted by David Alves <da...@gmail.com>.
Hi Jason
I meant the last wal segment for the 30aaccdf7c8c496a8ad73255856a1724
tablet on the dead server (if you don't have sensitive data in there)
Not sure whether you specified the flag: "--fs_wal_dir". If so it should
be in there, if not the wals are in the same dir as the value set for
"--fs_data_dirs".
A wal file has a name like: "wal-000000001"
Best
David
On Sat, Apr 22, 2017 at 7:46 PM, Jason Heo <ja...@gmail.com> wrote:
> Hi David.
>
> Sorry for the insufficient information.
>
> There are 14 nodes in my test kudu cluster. Only one tserver has been
> dead. It has only above two logs.
>
> Other 13 nodes has "Error trying to read ahead of the log while preparing
> peer request: Incomplete: Op with" error 7~10 times.
>
> >> *Would it be possible to also get the WAL with the corrupted entry?*
>
> Would you please explain how to get it in more detail?
>
> I tried what I did again and again to reproduce same error, but it didn't
> happen again.
>
> Please feel free to ask me for anything what you need to resolve.
>
> Regards,
>
> Jason
>
> 2017-04-23 1:56 GMT+09:00 <da...@gmail.com>:
>
>> Hi Jason
>>
>> Anything else of interest in those logs? Can you share them (with
>> just me, if you prefer)? Would it be possible to also get the WAL with
>> the corrupted entry?
>> Did this happen on a single server?
>>
>> Best
>> David
>>
>
>
Re: tserver died during bulk indexing and dies again after restarting
Posted by Jason Heo <ja...@gmail.com>.
Hi David.
Sorry for the insufficient information.
There are 14 nodes in my test kudu cluster. Only one tserver has been dead.
It has only above two logs.
Other 13 nodes has "Error trying to read ahead of the log while preparing
peer request: Incomplete: Op with" error 7~10 times.
>> *Would it be possible to also get the WAL with the corrupted entry?*
Would you please explain how to get it in more detail?
I tried what I did again and again to reproduce same error, but it didn't
happen again.
Please feel free to ask me for anything what you need to resolve.
Regards,
Jason
2017-04-23 1:56 GMT+09:00 <da...@gmail.com>:
> Hi Jason
>
> Anything else of interest in those logs? Can you share them (with
> just me, if you prefer)? Would it be possible to also get the WAL with
> the corrupted entry?
> Did this happen on a single server?
>
> Best
> David
>
tserver died during bulk indexing and dies again after restarting
Posted by da...@gmail.com.
Hi Jason
Anything else of interest in those logs? Can you share them (with
just me, if you prefer)? Would it be possible to also get the WAL with
the corrupted entry?
Did this happen on a single server?
Best
David