New issue
Advanced search Search tips
Starred by 1 user

Issue metadata

Status: Released
Owner: ----
Closed: Jan 2016



Sign in to add a comment
link

Issue 3762: Crash in OutputStreamQuery when querying projects via ssh

Reported by sschube...@gmail.com, Jan 11 2016 Project Member

Issue description

Affected Version: 2.11.4

What steps will reproduce the problem?
1. ssh -p 29418 gerrit.hostname.com gerrit query project:^.* --format=JSON --all-approvals --all-reviewers --comments --start 6500
2. Gerrit starts to return some data.
3. Gerrit returns "fatal: internal server error".

What is the expected output? What do you see instead?

I'd expect the data to be returned without an error. It works for other data ranges, like e.g. "--start 6000". Instead I see this in the server logs:

    java.lang.NullPointerException
        at com.google.gerrit.server.query.change.OutputStreamQuery.query(OutputStreamQuery.java:239)
        at com.google.gerrit.sshd.commands.Query.run(Query.java:96)
        at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:35)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:445)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:379)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
 

Comment 1 by sschube...@gmail.com, Jan 11 2016

Project Member

Comment 2 by huga...@gmail.com, Jan 11 2016

Project Member
Labels: FixedIn-2.11
Status: Submitted

Comment 3 by david.pu...@sonymobile.com, Jan 12 2016

Labels: -FixedIn-2.11 FixedIn-2.11.6

Comment 4 by david.pu...@gmail.com, Feb 27 2018

Status: Released (was: Submitted)

Sign in to add a comment