8. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:38:10 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

8.1 Files compared

# Location File Last Modified
1 solr-smart-client.zip\solr-smart-client\tools\zookeeper scratch.js Mon Aug 28 19:30:59 2017 UTC
2 solr-smart-client.zip\solr-smart-client\tools\zookeeper scratch.js Wed Oct 4 13:26:24 2017 UTC

8.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 106
Changed 1 2
Inserted 0 0
Removed 0 0

8.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

8.4 Active regular expressions

No regular expressions were active.

8.5 Comparison detail

  1   'use stric t';
  2  
  3   var zookee per = requ ire('node- zookeeper- client');
  4  
  5   var argv =  require(' yargs')
  6     .usage(' Usage: $0  --zookeepe r-connecti on <connec t-string>  --node-pat h <node-pa th>')
  7     .option( 'z', {
  8       alias:  'zookeepe r-connecti on',
  9         default: ' IP                ',
  10       descri be: 'zooke eper conne ction stri ng (single  or comma- delimited  list)',
  11       type:  'string'
  12     })
  13     .option( 'n', {
  14       alias:  'node-pat h',
  15       defaul t: '/live_ nodes',
  16       descri be: 'Path  of the nod e to creat e',
  17       type:  'string'
  18     })
  19     .alias(' ?', 'help' )
  20     .help('h elp')
  21     .argv;
  22  
  23   var zooKee perConnect ion = argv ['zookeepe r-connecti on'];
  24   var nodePa th = argv[ 'node-path '];
  25  
  26   var client  = zookeep er.createC lient(zooK eeperConne ction);
  27  
  28   client.on( 'state', f unction(st ate) {
  29     if (stat e === zook eeper.Stat e.SYNC_CON NECTED) {
  30       consol e.log('ses sionId: %s ', client. getSession Id().toStr ing('hex') );
  31       client .getChildr en(nodePat h, watch.b ind(null,  1), functi on(error,  children)  {
  32         if ( error) {
  33           co nsole.log( error);
  34           re turn;
  35         }
  36  
  37         cons ole.log('1 : %s', chi ldren);
  38  
  39         clie nt.getChil dren(nodeP ath, watch .bind(null , 2), func tion(error , children ) {
  40           if  (error) {
  41              console.lo g(error);
  42              return;
  43           }
  44           co nsole.log( '2: %s', c hildren);
  45         });
  46       });
  47     }
  48   });
  49  
  50   client.con nect();
  51  
  52   function w atch(id, e vent) {
  53     console. log('id: % s', id, ev ent);
  54   }