Appscale cannot read queue.xml?

21 views
Skip to first unread message

xybrek

unread,
Mar 26, 2018, 2:17:20 PM3/26/18
to AppScale Community
Our GAE application uses a lof of queue, and we have added custom queue, originally the default it this:

<queue-entries>
    <queue>
        <name>default</name>
        <rate>5/s</rate>
    </queue>
</queue-entries>

In our case, we added more <queue> entires

You can add more queue as needed here, but it seems Appscale is unable to pick up the added entries since we are getting this error:

Mar 26 18:09:48 appscale-image0 #011at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Mar 26 18:09:48 appscale-image0 Caused by: java.lang.IllegalStateException: The specified queue is unknown : null
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.taskqueue.QueueApiHelper.translateError(QueueApiHelper.java:104)
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.taskqueue.QueueImpl$2.wrap(QueueImpl.java:547)
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.taskqueue.QueueImpl$2.wrap(QueueImpl.java:519)
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.utils.FutureWrapper.wrapAndCache(FutureWrapper.java:53)
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90)
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:86)
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.taskqueue.QueueApiHelper.getInternal(QueueApiHelper.java:72)
Mar 26 18:09:48 appscale-image0 #011at com.google.appengine.api.taskqueue.QueueImpl.add(QueueImpl.java:411)

Note that our application is working with GAE and we have not modified anything in the Java codes that we have that we deployed in Appscale, so I think this is a bug or missing feature? 


Chris Donati

unread,
Mar 28, 2018, 11:27:52 AM3/28/18
to appscale_...@googlegroups.com
What does the structure of the war you are deploying look like? For example, I just tested a war directory with the queue.xml in the war/WEB-INF directory. The appscale-tools should detect this file and run an update_queues call after the deploy operation.

$ appscale deploy /path/to/war
...
Your app can be reached at the following URL: ...
Updating queues

You can confirm that the custom queues are configured with

$ echo "get /appscale/projects/hawkeyejava/queues" | /usr/share/zookeeper/bin/zkCli.sh
Connecting to localhost:2181
Welcome to ZooKeeper!
...
{"queue": {"hawkeyejava-PullQueue-0": {"mode": "pull"}, "default": {"rate": "5/s", "mode": "push"}, "queue-for-module-a": {"rate": "50/s", "target": "module-a"}...



--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_community@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

Xybrek Zybrek

unread,
Mar 28, 2018, 11:49:56 AM3/28/18
to appscale_...@googlegroups.com
Is there a command in appscale-tools to force update the queue? 

To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.

To post to this group, send email to appscale_community@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

Chris Donati

unread,
Mar 28, 2018, 11:51:49 AM3/28/18
to appscale_...@googlegroups.com
Not yet, but you could redeploy the war directory.
Reply all
Reply to author
Forward
0 new messages