devcharly opened 2 years ago
|
|||||
Change all occurrences of |
|||||
Yes, that works. Are there any downsides with that change? Does this still use database transaction? The Redmine issue import plugin is based on the source code of the GitHub issues plugin.
I was able to import ~500 issues (with lot of comments) from GitHub without any error.
So I wonder why It turns out that the text in the comments has something to do with it.
If I change this line to Is there any processing of the comment text while persisting that could cause the problem? |
|||||
As you've discovered, the issue links in the comment caused the issue, and this should happen for GitHub importer also. This is a bug, and using session.saveOrUpdate is a simple workaround. |
|||||
You may upgrade to build #2290 and still use dao.persist |
|||||
Many thanks. It works now 😀 BTW are you interested in integrating Redmine issue import into OneDev ? If yes, I would like to submit a pull request when it is complete. |
|||||
This is very welcomed! However to be included into OneDev itself, package name needs to be started with |
|||||
Robin Shen changed state to 'Closed' 2 years ago
|
|||||
Closing this now. Feel free to send a pull request if you want to include the plugin to OneDev. |
Type |
Question
|
Priority |
Normal
|
Assignee |
I'm developing a plugin to import Redmine issues into OneDev: https://github.com/DevCharly/onedev-plugin-import-redmine
It works fine for a small amount of issues, but always throws an exception (see below) for larger amount of issues (e.g. 100). But this is not consistent. Sometimes I can import 100 issues without error. Sometimes is fails with 50 issues...
It is either thrown when persisting comments or when persisting changes. If I comment-out persisting comments and changes, I can even import ~1200 issues without any error.
The exception message is always:
So it seems that the session was closed somewhere...
Any ideas how to fix this? Could this a problem with the embedded database?
I'm using OneDev 6.3.3 on Windows in a development environment (launched from Eclipse) with built-in database.