Skip to content

Conversation

@ShaunakDas88
Copy link

@ShaunakDas88 ShaunakDas88 commented Jul 30, 2021

The JIRA.

This seems to behave as expected. We are injecting writes to all nodes in the cluster when we kill one node:

INFO  [GossipStage:1] 2021-07-30 00:49:25,579 Gossiper.java:1290 - InetAddress /<DOWNED NODE IP> is now DOWN

We see hints are getting stored on other nodes, and when we run nodetool transferhints -d:

  • the command blocks for a bit during the transfer
  • no more hints on disk at the end
  • hinted handoff is disabled at the end
$ ls /mnt/cass_data_disks/data1/hints/
a7c7f39d-bcaf-4b51-811a-5b00e708b7f5-1627606160115-2.crc32  a7c7f39d-bcaf-4b51-811a-5b00e708b7f5-1627606160115-2.hints  a7c7f39d-bcaf-4b51-811a-5b00e708b7f5-1627606170111-2.hints
$
$ nodetool statushandoff
Hinted handoff is running
$
$ date -u; nodetool transferhints -d; date -u
Fri Jul 30 00:59:10 UTC 2021
Fri Jul 30 00:59:18 UTC 2021
$
$ nodetool statushandoff
Hinted handoff is not running

The above timestamps for the hint transfer window are confirmed both in the system logs:

INFO  [HintsDispatcher:19] 2021-07-30 00:59:12,396 HintsDispatchExecutor.java:158 - Transferring all hints to <RECEIVING NODE IP>:7000: 15737a33-a0a6-4331-97bf-32f8af2534c1

INFO  [HintsDispatcher:19] 2021-07-30 00:59:12,532 HintsDispatchExecutor.java:282 - Finished hinted handoff of file a7c7f39d-bcaf-4b51-811a-5b00e708b7f5-1627606160115-2.hints to endpoint <RECEIVING NODE IP>:7000: 15737a33-a0a6-4331-97bf-32f8af2534c1
INFO  [HintsDispatcher:19] 2021-07-30 00:59:18,371 HintsDispatchExecutor.java:282 - Finished hinted handoff of file a7c7f39d-bcaf-4b51-811a-5b00e708b7f5-1627606170111-2.hints to endpoint <RECEIVING NODE IP>:7000: 15737a33-a0a6-4331-97bf-32f8af2534c1

DEBUG [RMI TCP Connection(10)-<SENDING NODE IP>] 2021-07-30 00:59:18,372 StorageService.java:4536 - Hint transfer complete

and the metric for total hints flat-lining:
nodetool-transferhints

@ShaunakDas88 ShaunakDas88 changed the title add nodetool subcommand transferhints CASSANDRA-8132: Save or stream hints to a safe place in node replacement Jul 30, 2021
jacek-lewandowski added a commit to jacek-lewandowski/cassandra that referenced this pull request May 23, 2024
jacek-lewandowski added a commit to jacek-lewandowski/cassandra that referenced this pull request May 23, 2024
jacek-lewandowski added a commit to jacek-lewandowski/cassandra that referenced this pull request May 23, 2024
jacek-lewandowski added a commit to jacek-lewandowski/cassandra that referenced this pull request May 23, 2024
jacek-lewandowski added a commit to jacek-lewandowski/cassandra that referenced this pull request May 23, 2024
jacek-lewandowski added a commit to jacek-lewandowski/cassandra that referenced this pull request May 23, 2024
jbellis pushed a commit to jbellis/cassandra that referenced this pull request May 28, 2024
* Prevent closing PartitionIterator twice for LWT

* add a test and eliminate a leak in case of a failure (apache#1123)

Co-authored-by: Jacek Lewandowski <6516951+jacek-lewandowski@users.noreply.github.com>
ekaterinadimitrova2 pushed a commit to ekaterinadimitrova2/cassandra that referenced this pull request Jun 3, 2024
* Prevent closing PartitionIterator twice for LWT

* add a test and eliminate a leak in case of a failure (apache#1123)

Co-authored-by: Jacek Lewandowski <6516951+jacek-lewandowski@users.noreply.github.com>
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Sep 25, 2024
* Prevent closing PartitionIterator twice for LWT

* add a test and eliminate a leak in case of a failure (apache#1123)

Co-authored-by: Jacek Lewandowski <6516951+jacek-lewandowski@users.noreply.github.com>
@belliottsmith belliottsmith force-pushed the trunk branch 2 times, most recently from df3eb40 to 54e39a9 Compare July 23, 2025 11:19
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Jan 7, 2026
* Prevent closing PartitionIterator twice for LWT

* add a test and eliminate a leak in case of a failure (apache#1123)

Co-authored-by: Jacek Lewandowski <6516951+jacek-lewandowski@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant