Advertisement
Guest User

asearch test in prod

a guest
Oct 16th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.34 KB | None | 0 0
  1. -bash-4.1$ /opt/blocket/bin/index_ctl distribute_delta asearch all
  2. + '[' -z '' ']'
  3. + BDIR=/opt/blocket
  4. + BBINDIR=/opt/blocket
  5. + BCONFDIR=/opt/blocket
  6. + NICE='nice -n 19'
  7. + TAR='/bin/tar -c'
  8. + UNTAR='nice -n 19 /bin/tar -x'
  9. + PERL5LIB=/opt/blocket/lib/perl5
  10. + export PERL5LIB
  11. + '[' -z '' -a braceexpand:hashall:interactive-comments:/ '!=' braceexpand:hashall:interactive-comments:xtrace ']'
  12. + CTL_PREFIX='sh -x'
  13. + cmd=distribute_delta
  14. + shift
  15. + case "$cmd" in
  16. + distribute_delta asearch all
  17. + ENGINE=asearch
  18. ++ indexer_name asearch
  19. +++ sed -n 's/^[\ \t]*indexer[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  20. ++ typeset n=indexer
  21. ++ '[' -n indexer ']'
  22. ++ echo indexer
  23. + INDEXER=indexer
  24. ++ db_name asearch
  25. ++ sed -n 's/^[\ \t]*db_name[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  26. + DB=/var/opt/bsearch/index/adb
  27. + DB=/var/opt/bsearch/index/adb.index
  28. + '[' -n '' ']'
  29. + receive_cmd=receive_delta
  30. + in_state /var/opt/bsearch/index/adb.index unmerged
  31. + typeset DB=/var/opt/bsearch/index/adb.index
  32. + typeset state=unmerged
  33. + '[' '!' -d /var/opt/bsearch/index/adb.index ']'
  34. + '[' unmerged = ready ']'
  35. + '[' '!' -f /var/opt/bsearch/index/adb.index/.lock ']'
  36. + '[' unmerged '!=' unmerged ']'
  37. + return 0
  38. + set_state /var/opt/bsearch/index/adb.index distributing
  39. + typeset DB=/var/opt/bsearch/index/adb.index
  40. + typeset state=distributing
  41. + '[' '!' -d /var/opt/bsearch/index/adb.index ']'
  42. + '[' distributing = ready ']'
  43. + echo distributing
  44. + '[' all = all ']'
  45. ++ get_bconf_values '*.common.asearch.real.host.*.name' asearch
  46. ++ ENGINE=asearch
  47. +++ get_local_bconf_values 'common.asearch.host.*.name' asearch
  48. ++++ cat /opt/blocket/conf/asearch.postinstalled.conf
  49. ++++ sed -n 's/common.asearch.host.*.name=//p'
  50. +++ CHK='10.0.0.54
  51. 10.0.0.135
  52. 10.0.1.138
  53. 10.0.1.55'
  54. +++ '[' -n '10.0.0.54
  55. 10.0.0.135
  56. 10.0.1.138
  57. 10.0.1.55' ']'
  58. +++ cat /opt/blocket/conf/asearch.postinstalled.conf
  59. +++ sed -n 's/common.asearch.host.*.name=//p'
  60. ++ '[' -n '10.0.0.54
  61. 10.0.0.135
  62. 10.0.1.138
  63. 10.0.1.55' ']'
  64. ++ get_local_bconf_values 'common.asearch.host.*.name' asearch
  65. +++ cat /opt/blocket/conf/asearch.postinstalled.conf
  66. +++ sed -n 's/common.asearch.host.*.name=//p'
  67. ++ CHK='10.0.0.54
  68. 10.0.0.135
  69. 10.0.1.138
  70. 10.0.1.55'
  71. ++ '[' -n '10.0.0.54
  72. 10.0.0.135
  73. 10.0.1.138
  74. 10.0.1.55' ']'
  75. ++ cat /opt/blocket/conf/asearch.postinstalled.conf
  76. ++ sed -n 's/common.asearch.host.*.name=//p'
  77. + HOSTS='10.0.0.54
  78. 10.0.0.135
  79. 10.0.1.138
  80. 10.0.1.55'
  81. + '[' -z '10.0.0.54
  82. 10.0.0.135
  83. 10.0.1.138
  84. 10.0.1.55' ']'
  85. + distjobs=
  86. + disthosts=()
  87. + for host in '$HOSTS'
  88. + '[' 10.0.0.54 = localhost ']'
  89. + /sbin/ip -f inet addr show scope global
  90. + fgrep -w 10.0.0.54
  91. + sshcmd='ssh 10.0.0.54'
  92. + sync
  93. + distjobs=' 5825'
  94. + disthosts=("${disthosts[@]}" $host)
  95. + echo 'distributing delta to 10.0.0.54 (5825)'
  96. distributing delta to 10.0.0.54 (5825)
  97. + for host in '$HOSTS'
  98. + cd /var/opt/bsearch/index/adb.index
  99. + ssh 10.0.0.54 sh -x /opt/blocket/bin/index_ctl receive_delta asearch
  100. + '[' 10.0.0.135 = localhost ']'
  101. + /bin/tar -c -f - delta_721189426
  102. + /sbin/ip -f inet addr show scope global
  103. + fgrep -w 10.0.0.135
  104. + sshcmd='ssh 10.0.0.135'
  105. + sync
  106. + cd /var/opt/bsearch/index/adb.index
  107. + distjobs=' 5825 5831'
  108. + disthosts=("${disthosts[@]}" $host)
  109. + echo 'distributing delta to 10.0.0.135 (5831)'
  110. distributing delta to 10.0.0.135 (5831)
  111. + for host in '$HOSTS'
  112. + '[' 10.0.1.138 = localhost ']'
  113. + /bin/tar -c -f - delta_721189426
  114. + ssh 10.0.0.135 sh -x /opt/blocket/bin/index_ctl receive_delta asearch
  115. + /sbin/ip -f inet addr show scope global
  116. + fgrep -w 10.0.1.138
  117. + sshcmd='ssh 10.0.1.138'
  118. + sync
  119. + cd /var/opt/bsearch/index/adb.index
  120. + /bin/tar -c -f - delta_721189426
  121. + distjobs=' 5825 5831 5837'
  122. + disthosts=("${disthosts[@]}" $host)
  123. + ssh 10.0.1.138 sh -x /opt/blocket/bin/index_ctl receive_delta asearch
  124. + echo 'distributing delta to 10.0.1.138 (5837)'
  125. distributing delta to 10.0.1.138 (5837)
  126. + for host in '$HOSTS'
  127. + '[' 10.0.1.55 = localhost ']'
  128. + /sbin/ip -f inet addr show scope global
  129. + fgrep -w 10.0.1.55
  130. + sshcmd='ssh 10.0.1.55'
  131. + sync
  132. + distjobs=' 5825 5831 5837 5843'
  133. + disthosts=("${disthosts[@]}" $host)
  134. + cd /var/opt/bsearch/index/adb.index
  135. + echo 'distributing delta to 10.0.1.55 (5843)'
  136. + ssh 10.0.1.55 sh -x /opt/blocket/bin/index_ctl receive_delta asearch
  137. distributing delta to 10.0.1.55 (5843)
  138. + '[' receive_delta '!=' receive_delta ']'
  139. + merge -u /var/opt/bsearch/index/adb.index /var/opt/bsearch/index/adb.index.new
  140. + /bin/tar -c -f - delta_721189426
  141. + nice -n 19 /opt/blocket/bin/index_merge -u /var/opt/bsearch/index/adb.index /var/opt/bsearch/index/adb.index.new
  142. + '[' -z '' ']'
  143. + BDIR=/opt/blocket
  144. + BBINDIR=/opt/blocket
  145. + BCONFDIR=/opt/blocket
  146. + NICE='nice -n 19'
  147. + TAR='/bin/tar -c'
  148. + UNTAR='nice -n 19 /bin/tar -x'
  149. + PERL5LIB=/opt/blocket/lib/perl5
  150. + export PERL5LIB
  151. + '[' -z '' -a braceexpand:hashall:interactive-comments:posix:/ '!=' braceexpand:hashall:interactive-comments:posix:xtrace ']'
  152. + CTL_PREFIX='sh -x'
  153. + cmd=receive_delta
  154. + shift
  155. + case "$cmd" in
  156. + receive_delta asearch
  157. + ENGINE=asearch
  158. ++ indexer_name asearch
  159. +++ sed -n 's/^[\ \t]*indexer[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  160. ++ typeset n=indexer
  161. ++ '[' -n indexer ']'
  162. ++ echo indexer
  163. + INDEXER=indexer
  164. ++ db_name asearch
  165. ++ sed -n 's/^[\ \t]*db_name[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  166. + DB=/var/opt/bsearch/index/adb
  167. + DB=/var/opt/bsearch/index/adb
  168. + rm -r '/var/opt/bsearch/index/adb/delta*'
  169. + res=1
  170. + '[' 1 = 0 ']'
  171. + nice -n 19 /bin/tar -x -C /var/opt/bsearch/index/adb -f -
  172. + '[' -z '' ']'
  173. + BDIR=/opt/blocket
  174. + BBINDIR=/opt/blocket
  175. + BCONFDIR=/opt/blocket
  176. + NICE='nice -n 19'
  177. + TAR='/bin/tar -c'
  178. + UNTAR='nice -n 19 /bin/tar -x'
  179. + PERL5LIB=/opt/blocket/lib/perl5
  180. + export PERL5LIB
  181. + '[' -z '' -a braceexpand:hashall:interactive-comments:posix:/ '!=' braceexpand:hashall:interactive-comments:posix:xtrace ']'
  182. + CTL_PREFIX='sh -x'
  183. + cmd=receive_delta
  184. + shift
  185. + case "$cmd" in
  186. + receive_delta asearch
  187. + ENGINE=asearch
  188. ++ indexer_name asearch
  189. +++ sed -n 's/^[\ \t]*indexer[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  190. ++ typeset n=indexer
  191. ++ '[' -n indexer ']'
  192. ++ echo indexer
  193. + INDEXER=indexer
  194. ++ db_name asearch
  195. ++ sed -n 's/^[\ \t]*db_name[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  196. + DB=/var/opt/bsearch/index/adb
  197. + DB=/var/opt/bsearch/index/adb
  198. + rm -r '/var/opt/bsearch/index/adb/delta*'
  199. + res=1
  200. + '[' 1 = 0 ']'
  201. + nice -n 19 /bin/tar -x -C /var/opt/bsearch/index/adb -f -
  202. + '[' -z '' ']'
  203. + BDIR=/opt/blocket
  204. + BBINDIR=/opt/blocket
  205. + BCONFDIR=/opt/blocket
  206. + NICE='nice -n 19'
  207. + TAR='/bin/tar -c'
  208. + UNTAR='nice -n 19 /bin/tar -x'
  209. + PERL5LIB=/opt/blocket/lib/perl5
  210. + export PERL5LIB
  211. + '[' -z '' -a braceexpand:hashall:interactive-comments:posix:/ '!=' braceexpand:hashall:interactive-comments:posix:xtrace ']'
  212. + CTL_PREFIX='sh -x'
  213. + cmd=receive_delta
  214. + shift
  215. + case "$cmd" in
  216. + receive_delta asearch
  217. + ENGINE=asearch
  218. ++ indexer_name asearch
  219. +++ sed -n 's/^[\ \t]*indexer[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  220. ++ typeset n=indexer
  221. ++ '[' -n indexer ']'
  222. ++ echo indexer
  223. + INDEXER=indexer
  224. ++ db_name asearch
  225. ++ sed -n 's/^[\ \t]*db_name[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  226. + DB=/var/opt/bsearch/index/adb
  227. + DB=/var/opt/bsearch/index/adb
  228. + rm -r '/var/opt/bsearch/index/adb/delta*'
  229. + res=1
  230. + '[' 1 = 0 ']'
  231. + nice -n 19 /bin/tar -x -C /var/opt/bsearch/index/adb -f -
  232. + res=0
  233. + '[' 0 = 0 ']'
  234. + merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  235. + nice -n 19 /opt/blocket/bin/index_merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  236. + '[' -z '' ']'
  237. + BDIR=/opt/blocket
  238. + BBINDIR=/opt/blocket
  239. + BCONFDIR=/opt/blocket
  240. + NICE='nice -n 19'
  241. + TAR='/bin/tar -c'
  242. + UNTAR='nice -n 19 /bin/tar -x'
  243. + PERL5LIB=/opt/blocket/lib/perl5
  244. + export PERL5LIB
  245. + '[' -z '' -a braceexpand:hashall:interactive-comments:posix:/ '!=' braceexpand:hashall:interactive-comments:posix:xtrace ']'
  246. + CTL_PREFIX='sh -x'
  247. + cmd=receive_delta
  248. + shift
  249. + case "$cmd" in
  250. + receive_delta asearch
  251. + ENGINE=asearch
  252. ++ indexer_name asearch
  253. +++ sed -n 's/^[\ \t]*indexer[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  254. + res=0
  255. + '[' 0 = 0 ']'
  256. + merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  257. + nice -n 19 /opt/blocket/bin/index_merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  258. ++ typeset n=indexer
  259. ++ '[' -n indexer ']'
  260. ++ echo indexer
  261. + INDEXER=indexer
  262. ++ db_name asearch
  263. ++ sed -n 's/^[\ \t]*db_name[ \t]*=[ \t]*//p' /opt/blocket/conf/asearch.conf
  264. + DB=/var/opt/bsearch/index/adb
  265. + DB=/var/opt/bsearch/index/adb
  266. + rm -r '/var/opt/bsearch/index/adb/delta*'
  267. + res=1
  268. + '[' 1 = 0 ']'
  269. + nice -n 19 /bin/tar -x -C /var/opt/bsearch/index/adb -f -
  270. + res=0
  271. + '[' 0 = 0 ']'
  272. + merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  273. + nice -n 19 /opt/blocket/bin/index_merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  274. + res=0
  275. + '[' 0 = 0 ']'
  276. + merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  277. + nice -n 19 /opt/blocket/bin/index_merge -u /var/opt/bsearch/index/adb /var/opt/bsearch/index/adb.new
  278. + i=0
  279. + for j in '$distjobs'
  280. + wait 5825
  281. + res=0
  282. + '[' 0 = 0 ']'
  283. + set_state /var/opt/bsearch/index/adb.new ready
  284. + typeset DB=/var/opt/bsearch/index/adb.new
  285. + typeset state=ready
  286. + '[' '!' -d /var/opt/bsearch/index/adb.new ']'
  287. + '[' ready = ready ']'
  288. + rm -f /var/opt/bsearch/index/adb.new/.lock
  289. + rm -rf /var/opt/bsearch/index/adb/delta_721189426
  290. + exit 0
  291. + res=0
  292. + '[' 0 = 0 ']'
  293. + set_state /var/opt/bsearch/index/adb.new ready
  294. + typeset DB=/var/opt/bsearch/index/adb.new
  295. + typeset state=ready
  296. + '[' '!' -d /var/opt/bsearch/index/adb.new ']'
  297. + '[' ready = ready ']'
  298. + rm -f /var/opt/bsearch/index/adb.new/.lock
  299. + rm -rf /var/opt/bsearch/index/adb/delta_721189426
  300. + exit 0
  301. + res=0
  302. + '[' 0 = 0 ']'
  303. + set_state /var/opt/bsearch/index/adb.new ready
  304. + typeset DB=/var/opt/bsearch/index/adb.new
  305. + typeset state=ready
  306. + '[' '!' -d /var/opt/bsearch/index/adb.new ']'
  307. + '[' ready = ready ']'
  308. + rm -f /var/opt/bsearch/index/adb.new/.lock
  309. + rm -rf /var/opt/bsearch/index/adb/delta_721189426
  310. + exit 0
  311. + res=0
  312. + '[' 0 -ne 0 ']'
  313. + echo 'done distributing delta to 10.0.0.54 (5825)'
  314. done distributing delta to 10.0.0.54 (5825)
  315. + (( i++ ))
  316. + for j in '$distjobs'
  317. + wait 5831
  318. + res=0
  319. + '[' 0 -ne 0 ']'
  320. + echo 'done distributing delta to 10.0.0.135 (5831)'
  321. done distributing delta to 10.0.0.135 (5831)
  322. + (( i++ ))
  323. + for j in '$distjobs'
  324. + wait 5837
  325. + res=0
  326. + '[' 0 = 0 ']'
  327. + set_state /var/opt/bsearch/index/adb.new ready
  328. + typeset DB=/var/opt/bsearch/index/adb.new
  329. + typeset state=ready
  330. + '[' '!' -d /var/opt/bsearch/index/adb.new ']'
  331. + '[' ready = ready ']'
  332. + rm -f /var/opt/bsearch/index/adb.new/.lock
  333. + rm -rf /var/opt/bsearch/index/adb/delta_721189426
  334. + exit 0
  335. + res=0
  336. + '[' 0 -ne 0 ']'
  337. + echo 'done distributing delta to 10.0.1.138 (5837)'
  338. done distributing delta to 10.0.1.138 (5837)
  339. + (( i++ ))
  340. + for j in '$distjobs'
  341. + wait 5843
  342. + res=0
  343. + '[' 0 -ne 0 ']'
  344. + echo 'done distributing delta to 10.0.1.55 (5843)'
  345. done distributing delta to 10.0.1.55 (5843)
  346. + (( i++ ))
  347. + rm -rf /var/opt/bsearch/index/adb.index
  348. + set_state /var/opt/bsearch/index/adb.index.new ready
  349. + typeset DB=/var/opt/bsearch/index/adb.index.new
  350. + typeset state=ready
  351. + '[' '!' -d /var/opt/bsearch/index/adb.index.new ']'
  352. + '[' ready = ready ']'
  353. + rm -f /var/opt/bsearch/index/adb.index.new/.lock
  354. + mv /var/opt/bsearch/index/adb.index.new /var/opt/bsearch/index/adb.index
  355. + exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement