-
Notifications
You must be signed in to change notification settings - Fork 482
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
UnidirectionalOrderedOneToManyTest failed delete only 1st entry #22
Closed
senleft
wants to merge
1
commit into
vladmihalcea:master
from
senleft:UnidirectionalOrderedOneToManyTest
Closed
UnidirectionalOrderedOneToManyTest failed delete only 1st entry #22
senleft
wants to merge
1
commit into
vladmihalcea:master
from
senleft:UnidirectionalOrderedOneToManyTest
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It works just fine for me. Just take a look on the log:
|
Hello,
Thank you for checking it but you checked something else.
You did not check my pull request and did not run the test from it.
In your log I see the below entries:
INFO [Alice]: c.v.b.h.h.a.UnidirectionalOrderedOneToManyTest - *Remove tail*
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener -
Name:DATA_SOURCE_PROXY, Time:2, Success:True, Type:Prepared,
Batch:False, QuerySize:1, BatchSize:0, Query:["delete from
post_post_comment where Post_id=? and entry=?"], Params:[(1, 2)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener -
Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared,
Batch:False, QuerySize:1, BatchSize:0, Query:["delete from
post_comment where id=?"], Params:[(4)]
INFO [Alice]: c.v.b.h.h.a.UnidirectionalOrderedOneToManyTest - *Remove head*
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Ti
There is no log entry "Remove tail" in my pull request.
Above entries tells that you deleted tail AND head, probably in the
following way:
LOGGER.info("Remove tail");
post.getComments().remove(2);
LOGGER.info("Remove head");
post.getComments().remove(0);
In the pull request, I deleted only head and got mentioned error.
Regards, Aleksandr
…On Sun, May 6, 2018 at 9:24 AM, Vlad Mihalcea ***@***.***> wrote:
It works just fine for me. Just take a look on the log:
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:49, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["drop table if exists hibernate_sequence"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:3, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["drop table if exists post"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:2, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["drop table if exists post_comment"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["drop table if exists post_post_comment"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:38, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["create table hibernate_sequence (next_val bigint) engine=InnoDB"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:9, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into hibernate_sequence values ( 1 )"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:4, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into hibernate_sequence values ( 1 )"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:41, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["create table post (id bigint not null, title varchar(255), primary key (id)) engine=InnoDB"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:37, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["create table post_comment (id bigint not null, review varchar(255), primary key (id)) engine=InnoDB"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:44, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["create table post_post_comment (Post_id bigint not null, comments_id bigint not null, entry integer not null, primary key (Post_id, entry)) engine=InnoDB"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:56, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["alter table post_post_comment add constraint UK_gb03lqukc5jc1u847l17m311q unique (comments_id)"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:115, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["alter table post_post_comment add constraint FKp3qg7d2x7uh1eiulxe65rhwl2 foreign key (comments_id) references post_comment (id)"], Params:[]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:95, Success:True, Type:Statement, Batch:False, QuerySize:1, BatchSize:0, Query:["alter table post_post_comment add constraint FKdylii52824tsuhxvxsnancr51 foreign key (Post_id) references post (id)"], Params:[]
INFO [Alice]: o.h.t.s.i.SchemaCreatorImpl - HHH000476: Executing import script ***@***.***'
WARN [Alice]: b.t.Configuration - cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).
WARN [Alice]: b.t.j.DiskJournal - active log file is unclean, did you call BitronixTransactionManager.shutdown() at the end of the last run?
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:13, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["select next_val as id_val from hibernate_sequence for update"], Params:[()]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:2, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["update hibernate_sequence set next_val= ? where next_val=?"], Params:[(2, 1)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:2, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["select next_val as id_val from hibernate_sequence for update"], Params:[()]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["update hibernate_sequence set next_val= ? where next_val=?"], Params:[(3, 2)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:2, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["select next_val as id_val from hibernate_sequence for update"], Params:[()]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["update hibernate_sequence set next_val= ? where next_val=?"], Params:[(4, 3)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:2, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["select next_val as id_val from hibernate_sequence for update"], Params:[()]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["update hibernate_sequence set next_val= ? where next_val=?"], Params:[(5, 4)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:4, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into post (title, id) values (?, ?)"], Params:[(First post, 1)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:3, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into post_comment (review, id) values (?, ?)"], Params:[(My first review, 2)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into post_comment (review, id) values (?, ?)"], Params:[(My second review, 3)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into post_comment (review, id) values (?, ?)"], Params:[(My third review, 4)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:3, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into post_post_comment (Post_id, entry, comments_id) values (?, ?, ?)"], Params:[(1, 0, 2)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into post_post_comment (Post_id, entry, comments_id) values (?, ?, ?)"], Params:[(1, 1, 3)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:6, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["insert into post_post_comment (Post_id, entry, comments_id) values (?, ?, ?)"], Params:[(1, 2, 4)]
INFO [Alice]: c.v.b.h.h.a.UnidirectionalOrderedOneToManyTest - Remove tail
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:2, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["delete from post_post_comment where Post_id=? and entry=?"], Params:[(1, 2)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["delete from post_comment where id=?"], Params:[(4)]
INFO [Alice]: c.v.b.h.h.a.UnidirectionalOrderedOneToManyTest - Remove head
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["delete from post_post_comment where Post_id=? and entry=?"], Params:[(1, 1)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["update post_post_comment set comments_id=? where Post_id=? and entry=?"], Params:[(3, 1, 0)]
DEBUG [Alice]: n.t.d.l.SLF4JQueryLoggingListener - Name:DATA_SOURCE_PROXY, Time:1, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["delete from post_comment where id=?"], Params:[(2)]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxmt5OYNSkO-vR-esULoXZfx-GfiFytks5tvpcFgaJpZM4Tz0ef>
.
--
Sincerely Yours,
Alexandre Teterin mailto:AlexandreTeterin@gmail.com
|
Most likely, you bumped into some Hibernate bug. I remember seeing something similar on Jira lately. |
Hello, Should I report the bug or it already reported? Regards, Aleksandr |
You can report it. That's a good idea.
…On Sun, 6 May 2018, 10:25 Aleksandr Teterin, ***@***.***> wrote:
Hello,
Should I report the bug or it already reported.
I checked the mentioned case with Derby, DB2, H2 and with Hibernate and
EclipseLink and it reproduced for all combinations.
Regards, Aleksandr
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUDR1XkFmTcEmXCEYJuMhBo8ys-fR5Qks5tvqVigaJpZM4Tz0ef>
.
|
Done, HHH-12548 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
The UnidirectionalOrderedOneToManyTest failed for "delete only 1st entry" case
The reason is Hibernate generated SQL and as result the integrity constraint violation between //2 and //3 table rows
See details in below log.
Is it expected?
Regards, Alex