I want to create an application that will listen or detect failover events like when a cluster has failed over to another node (Event ID 1641). Is there any cluster API to catch this event like GetClusterNotify?
I want to create an application that will listen or detect failover events like when a cluster has failed over to another node (Event ID 1641). Is there any cluster API to catch this event like GetClusterNotify?
Hi,
I would like to check if the issue has been fixed? If yes, please help accept answer. If you need any additional assistance, please feel free to feedback.
Best Regards,
Danny
Hi,
Sorry, no. I used GetClusterNotify and GetClusterNotifyV2 to detect the failover. However, I want to know the meaning or value of the buffer used in GetClusterNotifyV2. Do you have any idea on this? Thank you
Hi,
I would like to check if the issue has been fixed? If yes, please help accept answer. If you need any additional assistance, please feel free to feedback.
Best Regards,
Danny
Hi,
Yes but we used different approach. Thanks for all the help
Hi,
Hope this will help:
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/clusters
Thanks for your time.
Best regards,
Danny
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi,
About the other question, you can refer to this article:
https://docs.microsoft.com/en-us/windows/win32/api/clusapi/nf-clusapi-getclusternotifyv2
Thanks for your time.
Best regards,
Danny
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi,
Yes, I am referring to that article, however I don't understand the use of the buffer parameter. Does it have structure?
Hi,
Hope this will help explain the use and value of buffers:
https://docs.microsoft.com/en-us/sql/odbc/reference/develop-app/buffers?view=sql-server-ver15

For parameters, I didn’t find any official documents, you might need to turn to some third party links.
Thanks for your understanding.
Best regards,
Danny
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi,
Thank you so much for the information. However, what I want to know is the value of the buffer used when GetClusterNotify is called. In my case, the value of the buffer I got is 0100000003000400240000053007400610074007500730049006E0066006F0072006D006100740069006F006E0000000600010008000000010000000000000000000000F078C4A0. The filterFlag is CLUSTER_CHANGE_CLUSTER_STATE_V2
Hi Atasha,
This might help:
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cmrp/d529b7a9-9f5b-4191-b093-dbb38ffa4277
Thanks for your time.
Best regards,
Danny
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
3 people are following this question.