[ 
https://issues.apache.org/jira/browse/SLING-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660450#action_12660450
 ] 

Carsten Ziegeler commented on SLING-799:
----------------------------------------

Ah, right - now I would prefer to use a sorted query and don't rely on any 
(maybe unknown) sorting of the nodes in the repository. An ordered collection 
in jcr only means that it is "somehow" ordered.
So I think we should a) sort the result of the JobStatusProvider methods during 
the query and b) use an ordered folder as this usually shows the order of the 
queue in the repository.

> Job Folder is not ordered and results in unordered queue
> --------------------------------------------------------
>
>                 Key: SLING-799
>                 URL: https://issues.apache.org/jira/browse/SLING-799
>             Project: Sling
>          Issue Type: Bug
>          Components: Event
>    Affects Versions: Extensions Event 2.0.2
>            Reporter: Tobias Bocanegra
>
> check code of
> AbstractRepositoryEventHandler.ensureRepositoryPath()
>     /**
>      * Check if the repository path already exists. If not, create it.
>      */
>     protected Node ensureRepositoryPath()
>     throws RepositoryException {
>         final Node node = JcrResourceUtil.createPath(this.repositoryPath,
>                                    EventHelper.NODETYPE_FOLDER,
>                                    EventHelper.NODETYPE_FOLDER,
>                                    this.writerSession, true);
>         return node;
>     }
> this should use a "sling:OrderedFolder"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to