Closed Nicole00 closed 11 months ago
This is a great milestone.
We could then:
Seems resp.space_name() == ''
is expected in current master/nightly-build of NebulaGraph core?
def test_2_reconnect(self):
try:
session = self.pool.get_session('root', 'nebula')
time.sleep(2)
# wait for the session space info to be updated to meta service
session.execute(
'CREATE SPACE IF NOT EXISTS test_session(vid_type=FIXED_STRING(8)); USE test_session;'
)
time.sleep(10)
for i in range(0, 5):
if i == 3:
os.system('docker stop tests_graphd0_1')
os.system('docker stop tests_graphd1_1')
time.sleep(3)
resp = session.execute('SHOW SESSIONS')
assert resp.is_succeeded(), resp.error_msg()
assert resp.space_name() == 'test_session' #<---------------------
time.sleep(2)
session.release()
new_session = self.pool.get_session('root', 'nebula')
new_session.execute('SHOW SPACES')
except Exception as e:
> assert False, e
E AssertionError: AssertionError("assert '' == 'test_session' #-----------
E - test_session")
E assert False
If that's the case, let's remove this assert from UT.
Seems
resp.space_name() == ''
is expected in current master/nightly-build of NebulaGraph core?def test_2_reconnect(self): try: session = self.pool.get_session('root', 'nebula') time.sleep(2) # wait for the session space info to be updated to meta service session.execute( 'CREATE SPACE IF NOT EXISTS test_session(vid_type=FIXED_STRING(8)); USE test_session;' ) time.sleep(10) for i in range(0, 5): if i == 3: os.system('docker stop tests_graphd0_1') os.system('docker stop tests_graphd1_1') time.sleep(3) resp = session.execute('SHOW SESSIONS') assert resp.is_succeeded(), resp.error_msg() assert resp.space_name() == 'test_session' #<--------------------- time.sleep(2) session.release() new_session = self.pool.get_session('root', 'nebula') new_session.execute('SHOW SPACES') except Exception as e: > assert False, e E AssertionError: AssertionError("assert '' == 'test_session' #----------- E - test_session") E assert False
If that's the case, let's remove this assert from UT.
Seems
resp.space_name() == ''
is expected in current master/nightly-build of NebulaGraph core?def test_2_reconnect(self): try: session = self.pool.get_session('root', 'nebula') time.sleep(2) # wait for the session space info to be updated to meta service session.execute( 'CREATE SPACE IF NOT EXISTS test_session(vid_type=FIXED_STRING(8)); USE test_session;' ) time.sleep(10) for i in range(0, 5): if i == 3: os.system('docker stop tests_graphd0_1') os.system('docker stop tests_graphd1_1') time.sleep(3) resp = session.execute('SHOW SESSIONS') assert resp.is_succeeded(), resp.error_msg() assert resp.space_name() == 'test_session' #<--------------------- time.sleep(2) session.release() new_session = self.pool.get_session('root', 'nebula') new_session.execute('SHOW SPACES') except Exception as e: > assert False, e E AssertionError: AssertionError("assert '' == 'test_session' #----------- E - test_session") E assert False
If that's the case, let's remove this assert from UT.
there's a test for multi-thread, it uses 50 threads to create space, causing the space is not enough for storaged. just fixed it. thanks @HarrisChu
Patch and project coverage have no change.
Comparison is base (
1fe9a44
) 77.51% compared to head (2fc9471
) 77.51%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
run docs/build.sh to auto generate the nebula-python api doc. the doc looks like:![image](https://github.com/vesoft-inc/nebula-python/assets/16240361/99f531e1-b29b-4da2-b0fc-ae88af948efb)