c5c5c7ecb570191dc4b9047122bec58d8dccfb2f,pfnopt/storages/rdb.py,RDBStorage,_check_table_schema_compatibility,#RDBStorage#,296

Before Change



        version_info = models.VersionInfoModel.find_or_create(session)

        try:
            session.commit()
        except IntegrityError as e:
            self.logger.debug(
                "Ignoring {}. This happens due to a timing issue during initial setup of {} "
                "table among multi threads/processes/nodes.".format(
                    repr(e), models.VersionInfoModel.__tablename__))
            session.rollback()

        if version_info.schema_version != models.SCHEMA_VERSION:
            raise RuntimeError(
                "The runtime pfnopt version {} is no longer compatible with the table schema "
                "(set up by pfnopt {}).".format(version.__version__, version_info.library_version))

After Change


        )

        session.add(version_info)
        self._commit_or_rollback_on_integrity_error(session)

    def _commit_or_rollback_on_integrity_error(self, session):
        // type: (orm.Session) -> None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pfnet/optuna
Commit Name: c5c5c7ecb570191dc4b9047122bec58d8dccfb2f
Time: 2018-04-24
Author: sano@preferred.jp
File Name: pfnopt/storages/rdb.py
Class Name: RDBStorage
Method Name: _check_table_schema_compatibility


Project Name: pfnet/optuna
Commit Name: c5c5c7ecb570191dc4b9047122bec58d8dccfb2f
Time: 2018-04-24
Author: sano@preferred.jp
File Name: pfnopt/storages/rdb.py
Class Name: RDBStorage
Method Name: set_trial_intermediate_value


Project Name: pfnet/optuna
Commit Name: c5c5c7ecb570191dc4b9047122bec58d8dccfb2f
Time: 2018-04-24
Author: sano@preferred.jp
File Name: pfnopt/storages/rdb.py
Class Name: RDBStorage
Method Name: set_trial_param