-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customer 47: Vertex Creation and Retrieval Fails in 2014-03-17 1.7-RC2-SNAPSHOT #2134
Comments
When I roll back to using 1.7-SNAPSHOT, the behavior works as expected. |
I see will look on it. On Mon, Mar 17, 2014 at 5:50 PM, j5bot notifications@github.com wrote:
Best regards, Orient Technologies |
I don't believe that the 2014-03-13 snapshot had this issue, either, but the 03-14 did |
https://gist.github.com/j5bot/9609066 Works with 1.7-SNAPSHOT but not with 1.7-rc2-SNAPSHOT |
Which snapshot do you use I got following using your test case: id before commit: #9:-2 Could you try with distribution from http://helios.orientechnologies.com/job/orient-maven/lastStableBuild/ ? |
I am specifying 1.7-rc2-SNAPSHOT in my maven configurations, pointed at the sonatype repo: https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/ Is there a repo I can specify to use the build you mention? We are not set up to bundle jars w/o maven and I don't have my own repository server set up at the moment and no time to install one. |
We have 2 options then.
What do you prefer ? |
I absolutely can't wait until tomorrow. I will try #2 ... which branch is stable? Also, could you install this: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Maven+Repository+Server ... that would expose your jenkins artifacts as a maven repo. |
Yes I can install. |
I can upload it manually in 20 minutes if needed. Lvc@ On 18 March 2014 16:32, Andrey Lomakin notifications@github.com wrote:
|
Yes, please. That would be great. |
It is uploaded automatically , but it will take about 24 hours to make them On Tue, Mar 18, 2014 at 5:33 PM, Luca Garulli notifications@github.comwrote:
Best regards, Orient Technologies |
Actually could you delete snapshots in your repository and try now ? On Tue, Mar 18, 2014 at 5:38 PM, Andrey Lomakin lomakin.andrey@gmail.comwrote:
Best regards, Orient Technologies |
Or try mvn clean install -U On Tue, Mar 18, 2014 at 5:42 PM, Andrey Lomakin lomakin.andrey@gmail.comwrote:
Best regards, Orient Technologies |
ok, i have cleared orientechnologies in my local maven repo and am pulling in latest 1.7-rc2-SNAPSHOT (20140318.153754-97) will try my test case after project builds. |
same thing although at least my core is marked 153700-97 ... don't know if these have different timestamps on the different jars |
I'm assuming that the mvn clean install -U you mean is from source branch ... I have a local copy of orient source but need to know what branch I should be on for a stable build and you're giving me maven2 commands for installing artifacts but as I recall the local build is from ant? |
do you use the same test as me https://gist.github.com/j5bot/9609066 or different one ? |
The same test ... I am pulling the graph out of a framed graph that is autowired with spring so the one line where I have: orientGraph = ... Is: OrientGraph orientGraph = (OrientGraph) superGraph.getFramedGraph().getBaseGraph(); in my test. |
Could you provide self containing test case. On Tue, Mar 18, 2014 at 6:06 PM, j5bot notifications@github.com wrote:
Best regards, Orient Technologies |
Passes when I replace the line given above with: new OrientGraphFactory("plocal: ... ", "admin", "admin").getTx(); Ideas on how this could possibly happen? Will make passing and failing tests as quick as I can but I was told that we would receive skype and google hangout support for issues such as these that are major blockers ... |
Yes, but you did not mention that you client from commercial support. On Tue, Mar 18, 2014 at 6:11 PM, j5bot notifications@github.com wrote:
Best regards, Orient Technologies |
My customer number is in the issue title: Customer 47. skype is alwaysj5 |
At this point I cannot reproduce the issue unless I am going through our spring autowiring. |
I am also getting this issue. If I do the following: ODatabaseDocumentTx db = new ODatabaseDocumentTx(dbUrl) ODocument file = new ODocument("File") I am unable to retrieve the newly created doc. Rolling back to rc1 and everything works. |
Sure, your database is not opened. This test @test public void testRecordsLoss() { OSchema schema = db.getMetadata().getSchema(); ODocument file = new ODocument("File"); System.out.println(db.load(file.getIdentity(), "*:-1", true)); provides following output File#9:0{name:test} v1 If your case still does not work , could you provide valid test ? On Thu, Mar 20, 2014 at 3:55 PM, Alex Duan notifications@github.com wrote:
Best regards, Orient Technologies |
Sorry, I did not include opening the database (which I do in my code), merely the creation of the database and the insertion. Also, the records themselves are created, but if I go in the console or in a successive call to query for the file (select from File where name='test') will return 0 results. Again, I had to switch back to RC1 since all my seed scripts have stopped working with RC2. |
If your scripts stopped to work could you create separate issue about it ? On Thu, Mar 20, 2014 at 5:10 PM, Andrey Lomakin lomakin.andrey@gmail.comwrote:
Best regards, Orient Technologies |
Which database do you use, On Thu, Mar 20, 2014 at 5:04 PM, Alex Duan notifications@github.com wrote:
Best regards, Orient Technologies |
I can open a separate issue, although I figured it was a related issue since the vertex and retrieval of that vertex are failing. Let me know if it would be better to create a new one. I am using embedded: OServer server = OServerMain.create() |
Could you create new one, they are not related. On Thu, Mar 20, 2014 at 5:19 PM, Alex Duan notifications@github.com wrote:
Best regards, Orient Technologies |
What's the status of this issue? |
We are not sure whether this issue is because of incorrect usage of graph or it still exists we need one more day to check. |
In my case the user never closed the graph with .shutdown(), so I think this is different? We should postpone it to 1.7. |
In my case, there may be issues with not calling .shutdown() but there is a call to .commit(). It's my understanding that the call to .commit() should result in the vertex being persisted. This was the behavior in previous versions of orientdb, and my tests pass when rolling back to 1.7-SNAPSHOT (last time I checked anyway), so there has to be some kind of change on the orientdb side that is resulting in different behavior. Which is not to say that my code is perfect, just to say that I don't think the problem can be entirely pinned on incorrect usage of the graph. In my case, I am creating a threadlocal instance of a class which then creates an OrientGraphFactory as a member property, using spring (in spring context xml). I then have prototype scoped objects which create OrientGraph / framed OrientGraph instance as members, by calling to the threadlocal object (it's called OrientGraphHandlerImpl) instance, which calls the .getTx() method of the member OrientGraphFactory. Andrey has links to gists with all of this code if you can please look at them and give us a second set of eyes / perspective. When I make the OrientGraphHandlerImpl object a singleton in one of my test harnesses for this issue, I am unable to reproduce. When I scope that class prototype in my production code, I am able to work around the issue ... but that is a temporary solution because it is not efficient code AFAIK. At the moment I am asking for further instruction on making threadlocal instances of OrientGraphFactory and/or OrientGraph (extremely proferably via spring context or annotations) in the correct way, since Andrey feels that the prototype scoped class which has an OrientGraph instance as a member is the root of my issue. |
HI, On Tue, Mar 25, 2014 at 6:26 PM, j5bot notifications@github.com wrote:
Best regards, Orient Technologies |
@laa please report here the output of the chat for further users ;-) |
Sure, but we delayed it because test is not ready. I will be back on this issue when test will be ready. |
Is this still valid? |
Thanks. |
No answer for 17 days. I close issue. |
I don't have a clean code repro case to give you but I will try to give you the code unwound from our abstractions:
...
public createObject() {
FramedObject object = framedGraph.addVertex("class:FramedObject");
object.setSomeProperty(someValue);
return object;
}
...
public FramedObject insertObject() {
FramedObject object = createObject();
...
object.setSomeOtherProperty(someOtherValue);
return object;
}
...
public void doStuff() {
insertObject();
OrientGraph orientGraph = (OrientGraph) framedGraph.getBaseGraph();
orientGraph.commit();
FramedObject object = orientGraph.command ( new OSQLCommand("select from FramedObject where someProperty = ? and someOtherProperty = ?") ).execute(someValue, someOtherValue).iterator().next();
assertNotNull(object);
}
....
Where I expect the addVertex + commit to create the vertex and save it to the database, there are no records created in the class or in V and the SQL query returns null.
The text was updated successfully, but these errors were encountered: