You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "huyx (JIRA)" <ji...@apache.org> on 2017/08/14 01:33:00 UTC

[jira] [Created] (CASSANDRA-13761) truncatehints cant't delete all hints

huyx created CASSANDRA-13761:
--------------------------------

             Summary: truncatehints  cant't delete all hints
                 Key: CASSANDRA-13761
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13761
             Project: Cassandra
          Issue Type: Bug
         Environment: 3.0.14
java version "1.8.0_131"
            Reporter: huyx
            Priority: Blocker


step1
Execute nodetool truncatehints on node A , no print any log. when restart the down node B,
A print:
INFO  [HintsDispatcher:1] 2017-08-10 18:27:01,593 HintsStore.java:126 - Deleted hint file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502360551290-1.hints
INFO  [HintsDispatcher:1] 2017-08-10 18:27:01,595 HintsDispatchExecutor.java:272 - Finished hinted handoff of file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502360551290-1.hints to endpoint /10.71.0.14,
and B data is repaired。

step2:
I change the cassandra.yaml max_hints_file_size_in_mb=1, and insert data to cluster.
Execute nodetool truncatehints on node A,A print:

INFO  [RMI TCP Connection(20)-10.71.0.12] 2017-08-11 17:22:51,164 HintsStore.java:126 - Deleted hint file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502443243250-1.hints
INFO  [RMI TCP Connection(20)-10.71.0.12] 2017-08-11 17:22:51,165 HintsStore.java:126 - Deleted hint file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502443273261-1.hints
INFO  [RMI TCP Connection(20)-10.71.0.12] 2017-08-11 17:22:51,166 HintsStore.java:126 - Deleted hint file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502443293262-1.hints
INFO  [RMI TCP Connection(20)-10.71.0.12] 2017-08-11 17:22:51,167 HintsStore.java:126 - Deleted hint file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502443313267-1.hints

when restart the down node B, A print:

Deleted hint file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502443333269-1.hints
INFO  [HintsDispatcher:7] 2017-08-11 17:25:14,626 HintsDispatchExecutor.java:272 - Finished hinted handoff of file 4da2fd65-a4fe-4c0a-bf95-f818431c31bb-1502443333269-1.hints to endpoint /10.71.0.14: 4da2fd65-a4fe-4c0a-bf95-f818431c31bb

truncatehints  can't delete all hits, it will Leave one don't delete。




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org