This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 14:03:42 server.1 | DEBUG: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. | |
| 14:03:42 server.1 | | |
| 14:03:42 server.1 | DEBUG: Trace: | |
| 14:03:42 server.1 | at C2DM.<anonymous> (events.js:133:17) | |
| 14:03:42 server.1 | at C2DM.once (events.js:158:8) | |
| 14:03:42 server.1 | at C2DM.send (/Users/arockwell/dev/node_modules/c2dm/lib/c2dm.js:78:18) | |
| 14:03:42 server.1 | at C2DM.send (/Users/arockwell/dev/blast/server/c2dm.coffee:38:24) | |
| 14:03:42 server.1 | at /Users/arockwell/dev/blast/server/app.coffee:69:24 | |
| 14:03:42 server.1 | at Array.forEach (native) | |
| 14:03:42 server.1 | at Function.<anonymous> (/Users/arockwell/dev/blast/node_modules/underscore/underscore.js:76:11) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error_callback = (error) -> | |
| -> | |
| callback(error) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActiveRecord::Base.connection.execute("delete from article_info where article_id = 1") | |
| article_infos = ArticleInfo.find_all_by_article_id(1) | |
| article_infos.size.should == 0 | |
| article_copy1 = Article.find(1) | |
| puts "article_info1: #{article_copy1.article_info}" | |
| article_copy2 = Article.find(1) | |
| puts "article_info2: #{article_copy2.article_info}" | |
| article_copy1.last_slide = 1 | |
| article_copy2.last_slide = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEFORE LAST_SLIDE ASSIGNMENT 1 | |
| article_copy1 nil | |
| article_copy2 nil | |
| BEFORE LAST_SLIDE ASSIGNMENT 2 | |
| article_copy1 nil | |
| article_copy2 nil | |
| BEFORE article_copy1 save | |
| article_copy1 #<ArticleInfo id: 17, article_id: 1, last_slide_id: 2, created_at: "2012-06-26 21:16:29", updated_at: "2012-06-26 21:16:29", league_override: false, external_url: nil, external_source: nil, click_count: 0, top: nil, comments_disabled: nil, user_agent: nil, edit_stack: nil, draggable_media: false, no_skins: false, headline_edited_by: nil, highlighted_comment_id: nil, reads_disabled: nil, no_autolink: nil, signature_content: false, top_commenters: nil> | |
| article_copy2 #<ArticleInfo id: 17, article_id: 1, last_slide_id: 2, created_at: "2012-06-26 21:16:29", updated_at: "2012-06-26 21:16:29", league_override: false, external_url: nil, external_source: nil, click_count: 0, top: nil, comments_disabled: nil, user_agent: nil, edit_stack: nil, draggable_media: false, no_skins: false, headline_edited_by: nil, highlighted_comment_id: nil, reads_disabl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActiveRecord::Base.connection.execute("delete from article_info where article_id = 1") | |
| article_infos = ArticleInfo.find_all_by_article_id(1) | |
| article_infos.size.should == 0 | |
| article_copy1 = Article.find(1) | |
| article_copy1.article_info.should == nil | |
| article_copy2 = Article.find(1) | |
| article_copy2.article_info.should == nil | |
| puts "BEFORE LAST_SLIDE ASSIGNMENT 1" | |
| puts "article_copy1 #{article_copy2.article_info.inspect}" | |
| puts "article_copy2 #{article_copy2.article_info.inspect}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| updateRedisBatchInfo = (batch_id, device_type, count) -> | |
| console.log("Setting key: sent_alerts:#{batch_id}:#{device_type}") | |
| redis.incrby("sent_alerts:#{batch_id}:#{device_type}", count) | |
| redis.incrby("batch_count:#{batch_id}:#{device_type}", 1) | |
| redis.get("batch_count:#{batch_id}:#{device_type}", (err, data) -> | |
| console.log("sent: #{data}") | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| redis 127.0.0.1:6379> get 'batch_count:QDLKFEJ1340:android' | |
| "4" | |
| redis 127.0.0.1:6379> get 'batch_count:QDLKFEJ1341:android' | |
| "3" | |
| redis 127.0.0.1:6379> get 'batch_count:QDLKFEJ1341:android' | |
| "3" | |
| redis 127.0.0.1:6379> get 'batch_count:QDLKFEJ1341:android' | |
| "3" | |
| redis 127.0.0.1:6379> get 'batch_count:QDLKFEJ1341:android' | |
| "3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node-c2dm (master) $ gitc setup arockwell node-c2dm ed50a0830 | |
| Configuration saved. | |
| node-c2dm (master) $ gitc branch https://bleacherreport.lighthouseapp.com/projects/6296-bug-reporting/tickets/8858-node-c2dm-disable-retry-on-quota-errors | |
| Your work will eventually merge into 'master'. Is this correct? (y/n) | |
| y | |
| Retrieving branch information from gitcycle. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| checkRedis = () -> | |
| redis.ping (err, data) -> | |
| if err then false else true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2) Apns #processBatch() should pass: | |
| Error: global leak detected: key | |
| at Runner.checkGlobals (/usr/local/lib/node_modules/mocha/lib/runner.js:104:21) | |
| at Runner.<anonymous> (/usr/local/lib/node_modules/mocha/lib/runner.js:43:44) | |
| at Runner.emit (events.js:88:20) | |
| at /usr/local/lib/node_modules/mocha/lib/runner.js:321:16 | |
| at done (/usr/local/lib/node_modules/mocha/lib/runnable.js:134:5) | |
| at Test.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:149:7) | |
| at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:272:10) | |
| at /usr/local/lib/node_modules/mocha/lib/runner.js:316:12 |