These are chat archives for Automattic/mongoose

30th
Nov 2015
salamani
@salamani
Nov 30 2015 08:41
Hi People
I have an issue while running testcases for mongoose can any please look into it
I have a mongodb server up and running at port 27017
Cloned the mongoose and run testcases
salamani
@salamani
Nov 30 2015 08:55
This message was deleted
# npm test

> mongoose@4.2.8-pre test /root/ravi/mongoose
> mocha test/*.test.js test/**/*.test.js

child_process: customFds option is deprecated, use stdio instead.
Not testing multi-mongos support

 You're not testing shards!
 Please set the MONGOOSE_SHARD_TEST_URI env variable.
 e.g: `mongodb://localhost:27017/database
 Sharding must already be enabled on your database

  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
 You're not testing replica sets!
 Please set the MONGOOSE_SET_TEST_URI env variable.
 e.g: `mongodb://localhost:27017/db,localhostâ¦`

â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤
  â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤â¤

  1129 passing (7m)
  182 failing

  1) model: populate: across DBs:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  2) Model #remove() works as a promise with a hook:
     Uncaught MongoError: 24: Too many open files
      at Function.MongoError.create (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
      at toError (/root/ravi/mongoose/node_modules/mongodb/lib/utils.js:114:22)
      at /root/ravi/mongoose/node_modules/mongodb/lib/collection.js:587:23
      at /root/ravi/mongoose/node_modules/mongodb/lib/bulk/unordered.js:469:9
      at resultHandler (/root/ravi/mongoose/node_modules/mongodb/lib/bulk/unordered.js:416:5)
      at /root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:778:13
1) model: populate: across DBs:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  2) Model #remove() works as a promise with a hook:
     Uncaught MongoError: 24: Too many open files
      at Function.MongoError.create (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
      at toError (/root/ravi/mongoose/node_modules/mongodb/lib/utils.js:114:22)
      at /root/ravi/mongoose/node_modules/mongodb/lib/collection.js:587:23
      at /root/ravi/mongoose/node_modules/mongodb/lib/bulk/unordered.js:469:9
      at resultHandler (/root/ravi/mongoose/node_modules/mongodb/lib/bulk/unordered.js:416:5)
      at /root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:778:13
      at Callbacks.emit (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:95:3)
      at null.messageHandler (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:249:23)
      at Socket.<anonymous> (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:262:22)
      at Socket.emit (events.js:107:17)
      at readableAddChunk (_stream_readable.js:163:16)
      at Socket.Readable.push (_stream_readable.js:126:10)
      at TCP.onread (net.js:538:20)

  3) Model #remove() when called multiple times always executes the passed callback gh-1210:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  4) Model getters nested object property access works when root initd with null:
     Uncaught MongoError: 24: Too many open files
      at Function.MongoError.create (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
      at toError (/root/ravi/mongoose/node_modules/mongodb/lib/utils.js:114:22)
      at /root/ravi/mongoose/node_modules/mongodb/lib/collection.js:587:23
      at /root/ravi/mongoose/node_modules/mongodb/lib/bulk/unordered.js:469:9
      at resultHandler (/root/ravi/mongoose/node_modules/mongodb/lib/bulk/unordered.js:416:5)
      at /root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:778:13
      at Callbacks.emit (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:95:3)
      at null.messageHandler (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:249:23)
      at Socket.<anonymous> (/root/ravi/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:262:22)
      at Socket.emit (events.js:107:17)
      at readableAddChunk (_stream_readable.js:163:16)
      at Socket.Readable.push (_stream_readable.js:126:10)
      at TCP.onread (net.js:538:20)

  5) Model getters nested object property access works when root initd with undefined:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  6) Model getters nested pre-existing null object re-save:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  7) Model getters nested array of Mixed on existing doc can be pushed to:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  8) Model getters nested props can be set directly when property was named "type":
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  9) Model setters are used on embedded docs (gh-365 gh-390 gh-422):
     Error:

  9) Model setters are used on embedded docs (gh-365 gh-390 gh-422):
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  10) Model atomic subdocument saving:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  11) Model atomic subdocument setting (gh-310):
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  12) Model saving embedded arrays of Numbers atomically:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  13) Model saving embedded arrays of Strings atomically:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  14) Model saving embedded arrays of Buffers atomically:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  15) Model saving embedded arrays works with modified element properties + doc removal (gh-975):
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  16) Model saving embedded arrays updating an embedded document in an embedded array with set call:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/root/ravi/mongoose/node_modules/mocha/lib/runnable.js:139:19)
      at Timer.listOnTimeout (timers.js:119:15)

  17) Model embedded array filtering by the id shortcut function:
     Error: timeout of 2000ms exceeded
npm ERR! Test failed.  See above for more details.
I have broken 3 parts of complete testcases.. sorry for such a long error message
salamani
@salamani
Nov 30 2015 12:28
and also at mongodb server getting error
[initandlisten] connection accepted from 127.0.0.1:33888 #3666 (225 connections now open)
2015-11-30T17:49:18.003+0530 I -        [ftdc] Assertion: 13538:couldn't open [/proc/9489/stat] errno:24 Too many open files
2015-11-30T17:49:18.003+0530 W FTDC     [ftdc] Uncaught exception in 'Location13538 couldn't open [/proc/9489/stat] errno:24 Too many open files' in full-time diagnostic data capture subsystem. Shutting down the full-time diagnostic data capture subsystem.
2015-11-30T17:49:18.131+0530 E STORAGE  [conn3663] WiredTiger (24) [1448885958:131368][9489:0x3ffe97dfeb60], WT_SESSION.create: /data/db/index-877-1440518180752875322.wt: Too many open files
2015-11-30T17:49:18.133+0530 I COMMAND  [conn3663] command mongoose_test.gh-735_5369408554397523 command: insert { insert: "gh-735_5369408554397523", documents: [ { _id: ObjectId('565c3ec53a9606a2261a1108'), comments: [ { name: "node 0.8" } ], __v: 0 } ], ordered: false, writeConcern: { w: 1 } } ntoskip:0 ninserted:0 keyUpdates:0 writeConflicts:0 exception: 24: Too many open files code:8 numYields:0 reslen:123 locks:{ Global: { acquireCount: { r: 2, w: 2 } }, Database: { acquireCount: { w: 1, W: 1 } }, Collection: { acquireCount: { w: 1, W: 1 } } } protocol:op_query 517ms
2015-11-30T17:49:18.148+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:18.148+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept more connections.
2015-11-30T17:49:19.148+0530 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:33944 #3667 (226 connections now open)
2015-11-30T17:49:19.149+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:19.149+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept more connections.
2015-11-30T17:49:20.111+0530 E STORAGE  [thread1] WiredTiger (24) [1448885960:111747][9489:0x3fffad0feb60], log-server: /data/db/journal: opendir: Too many open files
2015-11-30T17:49:20.111+0530 E STORAGE  [thread1] WiredTiger (24) [1448885960:111923][9489:0x3fffad0feb60], log-server: dirlist journal prefix WiredTigerPreplog: Too many open files
2015-11-30T17:49:20.111+0530 E STORAGE  [thread1] WiredTiger (24) [1448885960:111953][9489:0x3fffad0feb60], log-server: log pre-alloc server error: Too many open files
2015-11-30T17:49:20.111+0530 E STORAGE  [thread1] WiredTiger (24) [1448885960:111978][9489:0x3fffad0feb60], log-server: log server error: Too many open files
2015-11-30T17:49:20.149+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:20.149+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept more connections.
2015-11-30T17:49:21.149+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:21.149+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept more connections.
2015-11-30T17:49:22.149+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:22.149+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept more connections.
2015-11-30T17:49:23.149+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:23.149+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept more connections.
2015-11-30T17:49:24.150+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:24.150+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept more connections.
2015-11-30T17:49:25.150+0530 I NETWORK  [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
2015-11-30T17:49:25.150+0530 E NETWORK  [initandlisten] Out of file descriptors. Waiting one second before trying to accept m

2015-11-30T17:49:32.961+0530 I -        [thread2] Fatal Assertion 28558
2015-11-30T17:49:32.961+0530 I -        [thread2]

***aborting after fassert() failure


2015-11-30T17:49:32.970+0530 F -        [thread2] Got signal: 6 (Aborted).

 0x111c7b80 0x111c67e4 0x111c718c 0x3fffb7190478 0x3fffb695072c 0x11133fc4 0x10ea5cec 0x11a06b78 0x11a06cc4 0x11a07180 0x119764cc 0x3fffb6af8944 0x3fffb6a27640
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"10000000","o":"11C7B80"},{"b":"10000000","o":"11C67E4"},{"b":"10000000","o":"11C718C"},{"b":"3FFFB7190000","o":"478"},{"b":"3FFFB6910000","o":"4072C"},{"b":"10000000","o":"1133FC4"},{"b":"10000000","o":"EA5CEC"},{"b":"10000000","o":"1A06B78"},{"b":"10000000","o":"1A06CC4"},{"b":"10000000","o":"1A07180"},{"b":"10000000","o":"19764CC"},{"b":"3FFFB6AF0000","o":"8944"},{"b":"3FFFB6910000","o":"117640"}],"processInfo":{ "mongodbVersion" : "3.2.0-rc4", "gitVersion" : "3b3ef4253a6c5d5d3f18127ac2272a9696488aec", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "3.10.0-210.ael7a.ppc64le", "version" : "#1 SMP Tue Nov 25 08:27:04 EST 2014", "machine" : "ppc64le" }, "somap" : [ { "elfType" : 2, "b" : "10000000", "buildId" : "27F8A0A511A36DF51C815A8727C738919E0FBE52" }, { "b" : "3FFFB7190000", "elfType" : 3, "buildId" : "68E9DBFEE7725BCA346A3AADFF631D9C20E7E265" }, { "b" : "3FFFB70D0000", "path" : "/lib64/libssl.so.10", "elfType" : 3, "buildId" : "E46B75B46C31B1E307D0C04DE48C42E91BBF6219" }, { "b" : "3FFFB6E50000", "path" : "/lib64/libcrypto.so.10", "elfType" : 3, "buildId" : "AB6F9785D492FDF0F4A2AC06C7D08DA8889E0C36" }, { "b" : "3FFFB6E20000", "path" : "/lib64/power8/librt.so.1", "elfType" : 3, "buildId" : "626D07527A63941827A52A38E928E1C6807D3821" }, { "b" : "3FFFB6DF0000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "57734949376D241AF73F054863FB53E1F93D222D" }, { "b" : "3FFFB6C60000", "path" : "/lib64/libstdc++.so.6", "elfType" : 3, "buildId" : "FD6A390D603D2F07522F1013D0EF8014E722179E" }, { "b" : "3FFFB6B70000", "path" : "/lib64/power8/libm.so.6", "elfType" : 3, "buildId" : "0CAADB7D836B16CDD176833A0DAE38764E28006F" }, { "b" : "3FFFB6B30000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "4E2CAE4975DA8B74EA3059838BDD2ED50EA5EB2A" }, { "b" : "3FFFB6AF0000", "path" : "/lib64/power8/libpthread.so.0", "elfType" : 3, "buildId" : "4C0A14BCEE88F2C83BC28A4ADF87DD3A74AD853F" }, { "b" : "3FFFB6910000", "path" : "/lib64/power8/libc.so.6", "elfType" : 3, "buildId" : "552EC71564694CA8066C907BD54328EE0C250BCF" }, { "b" : "3FFFB71B0000", "path" : "/lib64/ld64.so.2", "elfType" : 3, "buildId" : "9F622117176D7D51DC0F827E25352994B88A5489" }, { "b" : "3FFFB6890000", "path" : "/lib64/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "3CDBA9444A5FC8958F5749ACF83E8B51DA626FBF" }, { "b" : "3FFFB6770000", "path" : "/lib64/libkrb5.so.3", "elfType" : 3, "buildId" : "D5C531B4F180EACDA6E668517C9C91C2E386B51D" }, { "b" : "3FFFB6740000", "path" : "/lib64/libcom_err.so.2", "elfType" : 3, "buildId" : "D3778E197923CB441680BF2B0D4BD3FA51CF4B38" }, { "b" : "3FFFB66E0000", "path" : "/lib64/libk5crypto.so.3", "elfType" : 3, "buildId" : "C9B3E6C2792B6244EF254D26AC44E5E841AD5CA0" }, { "b" : "3FFFB66A0000", "path" : "/lib64/libz.so.1", "elfType" : 3, "buildId" : "39B56D8C7ACB8559B96CA80488A0CC5D60E5215F" }, { "b" : "3FFFB6670000", "path" : "/lib64/libkrb5support.so.0", "elfType" : 3, "buildId" : "0F1B10767A26EFDE3F342985BA62BF06D83845DF" }, { "b" : "3FFFB6640000", "path" : "/lib64/libkeyutils.so.1", "elfType" : 3, "buildId" : "A1142DE6F702C5B8DA7B0213B1147C8442EF6CD0" }, { "b" : "3FFFB6600000", "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "8EE9D450F181F791C2FB0C30DE3112E7BEF26E3A" }, { "b" : "3FFFB65B0000", "path" : "/lib64/libselinux.so.1", "elfType" : 3, "buildId" : "0157498135739C8EC8A44CB911D45784BEEF66F0" }, { "b" : "3FFFB6540000", "path" : "/lib64/libpcre.so.1", "elfType" : 3, "buildId" : "98C137242BC1780C52C3631508B28018CCF1FD33" }, { "b" : "3FFFB64E0000", "path" : "/lib64/liblzma.so.5", "elfType" : 3, "buildId" : "A6A50FDF1BC1473396EEA9135234D1093E5F8F3A
please any solution that will be helpfull
Luke Childs
@lukechilds
Nov 30 2015 17:13
Hi, does anyone know if there's a way to offset a sort query to start on a specific document by giving its id
I currently have
var query = Post.find()
  .where('status').equals(status)
  .sort('-updated')
  .limit(count);
count is 8
so that shows the 8 most recently updated posts for a given status
I need to be able to pass an id in for pagination so I could get the 8 most recent after a certain id
is that possible?
Valeri Karpov
@vkarpov15
Nov 30 2015 17:39
@lukechilds yep, that's the most performant way to do pagination anyway
Luke Childs
@lukechilds
Nov 30 2015 23:33
@vkarpov15 Great! So how do I tell Mongoose to offset to a specific id?