[CDRIVER-3934] _mongoc_cluster_auth_node(): precondition failed: stream Created: 22/Mar/21  Updated: 28/Oct/23  Resolved: 10/May/21

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.17.4
Fix Version/s: 1.17.6

Type: Bug Priority: Major - P3
Reporter: Andrey Bugaevskiy Assignee: Andreas Braun
Resolution: Fixed Votes: 0
Labels: planned-maintenance-detectable-bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-4090 Speculative auth on a pooled client m... Backlog

 Description   

An assertion can be triggered in _mongoc_cluster_auth_node when called fromĀ 
mongoc_cluster_fetch_stream_single (at line 2429) in case speculative SCRAM auth failed with a network error.

  • mongoc_cluster_fetch_stream_single calls _mongoc_cluster_finish_speculative_auth
  • it calls _mongoc_cluster_auth_scram_continue
  • _mongoc_cluster_run_scram_command fails with a network error
  • _handle_network_error calls mongoc_cluster_disconnect_node which resets scanner node stream.


 Comments   
Comment by Githook User [ 03/Jun/21 ]

Author:

{'name': 'Andreas Braun', 'email': 'alcaeus@users.noreply.github.com', 'username': 'alcaeus'}

Message: CDRIVER-3934 Correctly handle network errors during speculative authentication (#791)

  • CDRIVER-3934 Correctly handle network errors during speculative authentication
  • Assert request before getting memory failure
Comment by Githook User [ 10/May/21 ]

Author:

{'name': 'Andreas Braun', 'email': 'alcaeus@users.noreply.github.com', 'username': 'alcaeus'}

Message: CDRIVER-3934 Correctly handle network errors during speculative authentication (#791)

  • CDRIVER-3934 Correctly handle network errors during speculative authentication
  • Assert request before getting memory failure
Comment by Githook User [ 10/May/21 ]

Author:

{'name': 'Andreas Braun', 'email': 'alcaeus@users.noreply.github.com', 'username': 'alcaeus'}

Message: CDRIVER-3934 Correctly handle network errors during speculative authentication (#791)

  • CDRIVER-3934 Correctly handle network errors during speculative authentication
  • Assert request before getting memory failure
Comment by Andreas Braun [ 06/May/21 ]

https://github.com/mongodb/mongo-c-driver/pull/791

Comment by Esha Bhargava [ 22/Mar/21 ]

bugaevskiy@yandex-team.ru Thank you for reporting this issue. We'll look into it and get back to you soon.

Generated at Wed Feb 07 21:19:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.