9. 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.

9.1 Files compared

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

9.2 Comparison summary

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

9.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

9.4 Active regular expressions

No regular expressions were active.

9.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> --data  <data>')
  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: '/test/ state.json ',
  16       descri be: 'Path  of the nod e for whic h to set d ata',
  17       type:  'string'
  18     })
  19     .option( 'd', {
  20       alias:  'data',
  21       defaul t: 'test',
  22       descri be: 'data  to set',
  23       type:  'string'
  24     })
  25     .alias(' ?', 'help' )
  26     .help('h elp')
  27     .argv;
  28  
  29   var zooKee perConnect ion = argv ['zookeepe r-connecti on'];
  30   var nodePa th = argv[ 'node-path '];
  31   var data =  argv.data  ? new Buf fer(argv.d ata) : nul l;
  32  
  33   var client  = zookeep er.createC lient(zooK eeperConne ction);
  34  
  35   client.on( 'state', f unction(st ate) {
  36           if  (state == = zookeepe r.State.SY NC_CONNECT ED) {
  37       consol e.log('ses sionId: %s ', client. getSession Id().toStr ing('hex') );
  38                    clie nt.setData (nodePath,  data, fun ction(erro r, data) {
  39                             client .close();
  40  
  41                             if (er ror) {
  42                                      console. log(error) ;
  43                                      process. exit(1);
  44                             }
  45  
  46                             consol e.log('Dat a at %s: % s', nodePa th, data);
  47                             proces s.exit();
  48                    });
  49           }
  50   });
  51  
  52   client.con nect();