Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Information Provided
-
None
-
None
-
None
-
3.0.14
java version "1.8.0_131"
-
Low
Description
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。