Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-639

[Python][8.4.4]Python 8.4.4 doesn't support CUBRID shard db

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Python 8.4.4
    • Fix Version/s: Python 8.4.4
    • Component/s: Python Driver
    • Labels:
    • Environment:
      • OS: Linux 64 bit
      • CUBRID: 8.4.4.0227
      • Python: 2.6.5
      • Driver: cubrid-python 8.4.4

      Description

      • Brief: Python Driver 8.4.4 cannot connect to the shard db on CUBRID 8.4.4
      • CUBRID 8.4.4 Shard Configuration: please see the attachments
      • Test Code {code}
        import unittest
        import _cubrid
        from _cubrid import *
        import time

        class pythonShard(unittest.TestCase):

        def test_shard_connection(self):
        con = _cubrid.connect('CUBRID:10.34.64.58:45016:shard1:::', 'dba', '')
        print (con)
        con.close()


        if _name_ == '_main_':
        suite = unittest.TestLoader().loadTestsFromTestCase(pythonShard)
        unittest.TextTestRunner(verbosity=2).run(suite){code}

      Expected Result

      The connection has been built successfully 
      

      Actual Result

      ======================================================================
      ERROR: test_shard_connection (__main__.pythonShard)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "python_shard.py", line 11, in test_shard_connection
          con = _cubrid.connect('CUBRID:10.34.64.58:45016:shard1:::', 'dba', '')
      InterfaceError: (-4, 'ERROR: CCI, -4, Cannot communicate with server')
      
      ----------------------------------------------------------------------
      
      1. shard_connection.txt
        0.5 kB
        Ray Yin
      2. shard_key.txt
        0.2 kB
        Ray Yin
      3. shard.conf
        2 kB
        Ray Yin

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            cn15800 谢韦华[Bert]
            Reporter:
            ryin005 Ray Yin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: