zoukankan      html  css  js  c++  java
  • 导入showb时候出错--2015-12-4

    [root@cache-02 ~]# /opt/coreseek/csftweb
    -bash: /opt/coreseek/csftweb: is a directory
    [root@cache-02 ~]# cd /opt/coreseek/csftweb
    [root@cache-02 csftweb]# python manager.py import showb
    Traceback (most recent call last):
    File "manager.py", line 2116, in <module>
    manager.run()
    File "/usr/lib/python2.6/site-packages/flask_script/__init__.py", line 412, in run
    result = self.handle(sys.argv[0], sys.argv[1:])
    File "/usr/lib/python2.6/site-packages/flask_script/__init__.py", line 383, in handle
    res = handle(*args, **config)
    File "/usr/lib/python2.6/site-packages/flask_script/commands.py", line 216, in __call__
    return self.run(*args, **kwargs)
    File "manager.py", line 463, in run
    force_flag, dict_only_flag, data_only_flag, continue_flag, app_name)
    File "manager.py", line 612, in action_import_data
    fetch_flag = importer.import_main_table(conn, tbl_name, bucket_st, range_ctx)
    File "/opt/coreseek/csftweb/csftweb/datasync/data_import.py", line 129, in import_main_table
    base_path, last_row = storage.save(rs, pks, ctx.get('base_path', None), save_row_list=False)
    File "/opt/coreseek/csftweb/csftweb/storage/fs_storage.py", line 202, in save
    for row in rows:
    File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 548, in __iter__
    row = self.fetchone()
    File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 825, in fetchone
    self.cursor, self.context)
    File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1159, in _handle_dbapi_exception
    exc_info
    File "/usr/lib64/python2.6/site-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
    File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 816, in fetchone
    row = self._fetchone_impl()
    File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/result.py", line 733, in _fetchone_impl
    return self.cursor.fetchone()
    File "pymssql.pyx", line 512, in pymssql.Cursor.fetchone (pymssql.c:7509)
    sqlalchemy.exc.OperationalError: (OperationalError) (1205, 'Transaction (Process ID 129) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.DB-Lib error message 1205, severity 13: General SQL Server error: Check messages from the SQL Server ') None None

  • 相关阅读:
    xml 创建 和 处理 及其修改
    shutil模块(高级的文件copy)
    shelve模块使用说明
    random内置模块
    time 时间内置模块3种形态的转化
    python模块说明
    Java控制并发线程数的Semaphore
    Java并发测试
    JAVA 模拟瞬间高并发
    java并发--流量控制demo
  • 原文地址:https://www.cnblogs.com/liuxiaocao/p/5018385.html
Copyright © 2011-2022 走看看