Conflict with NA (Internal server error) in GUI display

411 views
Skip to first unread message

Gaurav Negi

unread,
Jun 15, 2016, 1:12:24 AM6/15/16
to Repo and Gerrit Discussion
Dear Gerrit Experts,
  Any idea about this issue? For some commits, there is some message in display. 

"Conflicts with (N/A) 500 internal server error"

Inline image 1

Thanks
-Gaurav

luca.mi...@gmail.com

unread,
Jun 15, 2016, 2:11:20 AM6/15/16
to Gaurav Negi, Repo and Gerrit Discussion
It depends on what stack trace you have associated to the 500 in your error_log

Sent from my iPhone

On 15 Jun 2016, at 06:12, Gaurav Negi <gaura...@gmail.com> wrote:

Dear Gerrit Experts,
  Any idea about this issue? For some commits, there is some message in display. 

"Conflicts with (N/A) 500 internal server error"

<image.png>

Thanks
-Gaurav

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gaurav Negi

unread,
Jun 15, 2016, 2:17:27 AM6/15/16
to Luca Milanesio, Repo and Gerrit Discussion
Thanks Luca,
   Something like this I am seeing in error_logs

 ... 90 more

33730 [2016-06-14 23:08:34,790] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/?q=status:open+is:mergeable+conflicts:1604&O=a

33731 java.lang.NullPointerException

33732 [2016-06-14 23:12:01,834] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/?q=status:open+is:mergeable+conflicts:1568&O=a

33733 java.lang.NullPointerException

33734 [2016-06-14 23:13:08,085] WARN  / : Internal error during upload-pack from /srv/git/main.git

33735 org.eclipse.jetty.io.EofException



luca.mi...@gmail.com

unread,
Jun 15, 2016, 2:19:38 AM6/15/16
to Gaurav Negi, Repo and Gerrit Discussion
Doesn't seem a stack trace :-( you should have a stack of calls associated to the 500 on the screen.

Sent from my iPhone

Gaurav Negi

unread,
Jun 15, 2016, 9:33:22 PM6/15/16
to Luca Milanesio, Repo and Gerrit Discussion
Hi Luca, Error_log donot say anything about "500 Internal server error", however there are other error message.

Also what I am seeing is, This is coming up only for patche and draft commits of "master" branch only.
It is not showing up in other repos or other branches of that repo. 

Conflicts With (N/A)
 
500 Internal server error



500 Internal server error

Gaurav Negi

unread,
Jun 15, 2016, 11:55:19 PM6/15/16
to Luca Milanesio, Repo and Gerrit Discussion
Luca and all,
  This is very irritating message, coming up on OPEN commits of master branch only on a particular repo only.

Inline image 1


I can see something like this in error_log

[2016-06-15 20:38:50,570] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/?q=status:open+is:mergeable+conflicts:1285&O=a

java.lang.NullPointerException

  at com.google.gerrit.server.query.change.ConflictsPredicate$1.match(ConflictsPredicate.java:94)

  at com.google.gerrit.server.query.change.ConflictsPredicate$1.match(ConflictsPredicate.java:89)

  at com.google.gerrit.server.query.OrPredicate.match(OrPredicate.java:76)

  at com.google.gerrit.server.query.AndPredicate.match(AndPredicate.java:76)

  at com.google.gerrit.server.query.change.AndSource.readImpl(AndSource.java:116)

  at com.google.gerrit.server.query.change.AndSource.read(AndSource.java:99)

  at com.google.gerrit.server.query.change.QueryProcessor.queryChanges(QueryProcessor.java:153)

  at com.google.gerrit.server.query.change.QueryProcessor.queryChanges(QueryProcessor.java:102)

  at com.google.gerrit.server.query.change.QueryChanges.query0(QueryChanges.java:144)

  at com.google.gerrit.server.query.change.QueryChanges.query(QueryChanges.java:133)

 


Older logs also have this


[2016-06-12 23:59:20,056] ERROR com.google.gerrit.server.git.ChangeMergeQueue : Merge attempt for main,refs/heads/master failed
java.lang.NullPointerException
        at com.google.gerrit.server.git.strategy.RebaseIfNecessary._run(RebaseIfNecessary.java:89)
        at com.google.gerrit.server.git.strategy.SubmitStrategy.run(SubmitStrategy.java:118)
        at com.google.gerrit.server.git.MergeOp.preMerge(MergeOp.java:410)
        at com.google.gerrit.server.git.MergeOp.merge(MergeOp.java:280)


Any input or leads is highly appreciated. 

Thanks

-Gaurav

luca.mi...@gmail.com

unread,
Jun 16, 2016, 2:15:50 AM6/16/16
to Gaurav Negi, Repo and Gerrit Discussion


Sent from my iPhone

On 16 Jun 2016, at 04:55, Gaurav Negi <gaura...@gmail.com> wrote:

Luca and all,
  This is very irritating message, coming up on OPEN commits of master branch only on a particular repo only.

<image.png>


I can see something like this in error_log

[2016-06-15 20:38:50,570] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/?q=status:open+is:mergeable+conflicts:1285&O=a

java.lang.NullPointerException

  at com.google.gerrit.server.query.change.ConflictsPredicate$1.match(ConflictsPredicate.java:94)

  at com.google.gerrit.server.query.change.ConflictsPredicate$1.match(ConflictsPredicate.java:89)

  at com.google.gerrit.server.query.OrPredicate.match(OrPredicate.java:76)

  at com.google.gerrit.server.query.AndPredicate.match(AndPredicate.java:76)

  at com.google.gerrit.server.query.change.AndSource.readImpl(AndSource.java:116)

  at com.google.gerrit.server.query.change.AndSource.read(AndSource.java:99)

  at com.google.gerrit.server.query.change.QueryProcessor.queryChanges(QueryProcessor.java:153)

  at com.google.gerrit.server.query.change.QueryProcessor.queryChanges(QueryProcessor.java:102)

  at com.google.gerrit.server.query.change.QueryChanges.query0(QueryChanges.java:144)

  at com.google.gerrit.server.query.change.QueryChanges.query(QueryChanges.java:133)

 

Yes, this is the right stack trace I was talking about.

The Change screen issues backend searches using various predicates. Is seems that the "conflicts" one has some bugs.

Which version are you running?

Luca

Gaurav Negi

unread,
Jun 16, 2016, 11:03:34 AM6/16/16
to luca.mi...@gmail.com, Repo and Gerrit Discussion
Hi Luca, we are using 2.11.8 

Thanks
-Gaurav
Sent from my iPhone

Gaurav Negi

unread,
Jun 16, 2016, 1:19:20 PM6/16/16
to Luca Milanesio, Repo and Gerrit Discussion
Hi Luca, Do you think upgrading to 2.12 will fix the issue?

Thanks
-Gaurav

Gaurav Negi

unread,
Jun 16, 2016, 8:19:38 PM6/16/16
to Luca Milanesio, Repo and Gerrit Discussion
Upgrading to 2.12 is fixing it. I tried in my Staging, it looks better.

Thanks
-Gaurav

Ashwini T R

unread,
Jun 9, 2017, 9:05:21 AM6/9/17
to Repo and Gerrit Discussion, luca.mi...@gmail.com
Hi Luca,

We are also facing the similar issue as reported. "Conflicts With (N/A) 500 Internal server error" in multiple changes created in Gerrit for two different repositories.
Our gerrit server is running on version 2.13.2. 

Below is the stack trace output captured for one of the change having the above mentioned error. Please suggest how to resolve this issue.


[2017-06-09 15:56:28,552] [HTTP-645647] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/?q=status:open+is:mergeable+conflicts:117489&O=a
java.lang.NullPointerException: change 503 not found in ReviewDb
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:251)
        at com.google.gerrit.server.notedb.ChangeNotes$Factory.loadChangeFromDb(ChangeNotes.java:157)
        at com.google.gerrit.server.notedb.ChangeNotes$Factory.create(ChangeNotes.java:170)
        at com.google.gerrit.server.query.change.ChangeData.notes(ChangeData.java:759)
        at com.google.gerrit.server.query.change.ChangeData.reviewers(ChangeData.java:932)
        at com.google.gerrit.server.project.ChangeControl.isReviewer(ChangeControl.java:364)
        at com.google.gerrit.server.project.ChangeControl.isDraftVisible(ChangeControl.java:445)
        at com.google.gerrit.server.project.ChangeControl.isVisible(ChangeControl.java:211)
        at com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate.match(ChangeIsVisibleToPredicate.java:67)
        at com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate.match(ChangeIsVisibleToPredicate.java:27)
        at com.google.gerrit.server.query.AndSource.match(AndSource.java:147)
        at com.google.gerrit.server.query.AndSource.readImpl(AndSource.java:101)
        at com.google.gerrit.server.query.AndSource.read(AndSource.java:85)
        at com.google.gerrit.server.query.QueryProcessor.query(QueryProcessor.java:191)
        at com.google.gerrit.server.query.QueryProcessor.query(QueryProcessor.java:139)
        at com.google.gerrit.server.query.change.QueryChanges.query(QueryChanges.java:123)
        at com.google.gerrit.server.query.change.QueryChanges.apply(QueryChanges.java:94)
        at com.google.gerrit.server.query.change.QueryChanges.apply(QueryChanges.java:38)
        at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286)
        at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276)
        at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181)
        at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
        at com.google.gerrit.httpd.GetUserFilter.doFilter(GetUserFilter.java:82)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.gerrit.httpd.RequireSslFilter.doFilter(RequireSslFilter.java:77)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:73)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:122)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.gerrit.httpd.RequestMetricsFilter.doFilter(RequestMetricsFilter.java:60)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:136)
        at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:201)
        at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:178)
        at com.googlesource.gerrit.plugins.javamelody.GerritMonitoringFilter.doFilter(GerritMonitoringFilter.java:65)
        at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:132)
        at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:105)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:75)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Unknown Source)

Thanks
Ashwini

Senthil Kumar

unread,
Jul 18, 2017, 8:09:25 AM7/18/17
to Repo and Gerrit Discussion
Am facing the same issue too.
Submit button is missing for 1 particular branch in a repository. For all other branch in the same repository i can see the submit button.
Using Gerrit 2.13.5 Concurrent modification detected. I thought this issue was fixed in the earlier releases.

Log shows
[2017-07-18 04:04:04,223] [HTTP-2506818] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in POST /r/changes/1521477/revisions/7432d94276b0e4c7f7083a762db517d980676e85/review
com.google.gerrit.server.git.UpdateException: com.google.gwtorm.server.OrmConcurrencyException: Concurrent modification detected
        at com.google.gerrit.server.git.BatchUpdate$ChangeTask.call(BatchUpdate.java:982)
        at com.google.gerrit.server.git.BatchUpdate$ChangeTask.call(BatchUpdate.java:897)
        at com.google.gerrit.server.git.BatchUpdate$ChangeTask.call(BatchUpdate.java:873)
        at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:108)
        at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:41)
        at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:310)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
        at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:61)
        at com.google.gerrit.server.git.BatchUpdate.executeChangeOps(BatchUpdate.java:732)
        at com.google.gerrit.server.git.BatchUpdate.execute(BatchUpdate.java:408)
        at com.google.gerrit.server.git.BatchUpdate.execute(BatchUpdate.java:649)
        at com.google.gerrit.server.git.BatchUpdate.execute(BatchUpdate.java:644)
        at com.google.gerrit.server.change.PostReview.apply(PostReview.java:216)
        at com.google.gerrit.server.change.PostReview.apply(PostReview.java:152)
        at com.google.gerrit.server.change.PostReview.apply(PostReview.java:102)
        at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:341)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
Reply all
Reply to author
Forward
0 new messages