vesoft-inc / nebula-python

Client API of Nebula Graph in Python
184 stars 76 forks source link

fix leader change #330

Closed HarrisChu closed 3 months ago

HarrisChu commented 3 months ago

fix scan if leader change.

original error:

part_id 9 has leader change, old leader is HostAddr(
    host='192.168.15.7',
    port=9779), new leader is HostAddr(
    host='192.168.15.6',
    port=9779)
Traceback (most recent call last):
  File "/home/jingchun.xia/anaconda3/lib/python3.11/site-packages/nebula3/sclient/__init__.py", line 176, in do_scan_job
    req.part_id,
    ^^^^^^^^
AttributeError: 'ScanEdgeRequest' object has no attribute 'part_id'
codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.82%. Comparing base (c5d8ca7) to head (b84a702).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #330 +/- ## ========================================== - Coverage 76.90% 76.82% -0.08% ========================================== Files 18 18 Lines 2516 2516 ========================================== - Hits 1935 1933 -2 - Misses 581 583 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.