Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62446

XDCR - panic with getMaxCasWithRetry

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      Panic found during testing for backport for MB-62383

      Remote Cluster: 524b35202083f5667b7bbc95c7ded5bb SourceBucket: B1 TargetBucket: B2 SortedVBs: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511]
       
      settings = map[CollectionsMgtMulti:ExplicitMapping: false Mirroring: false Migration: false OSO: true P2PDynamicWaitDuration:30s active:true backlogThreshold:50 bandwidth_limit:0 casDriftThresholdSecs:100 checkpoint_interval:60 ckptSvcCacheEnabled:true colMappingRules:map[] collectionsSkipSrcValidation:false compression_type:3 dcpEnablePurgeRollback:false delAllBackfills:false delSpecificBackfillForVb:-1 dismissEvent:-1 doc_batch_size_kb:2048 failure_restart_interval:10 filterSystemScope:true filter_exp_del:0 filter_expression: filter_expression_version:0 filter_skip_restream:false jsFunctionTimeoutMs:20000 log_level:Info manualBackfill: mergeFunctionMapping:map[] mobile:1 optimistic_replication_threshold:256 pipeline_errors:0 preCheckCasDriftThresholdHours:8760 preReplicateVBMasterCheck:true priority:High replicateCkptIntervalMin:20 replication_type:xmem retryOnErrExceptAuthErrMaxWaitSec:360 retryOnRemoteAuthErr:true retryOnRemoteAuthErrMaxWaitSec:360 source_nozzle_per_node:2 stats_interval:500 targetTopologyLogFrequency:1800 target_nozzle_per_node:2 worker_batch_size:500 xdcrDevBackfillReplUpdateDelayMs:0 xdcrDevBackfillRollbackTo0VB:-1 xdcrDevBackfillSendDelayMs:0 xdcrDevBucketTopologyLegacyDelay:0 xdcrDevCasDriftInjectDocKey: xdcrDevCkptMgrForceGCWaitSec:0 xdcrDevColManifestSvcDelaySec:0 xdcrDevMainRollbackTo0VB:-1 xdcrDevMainSendDelayMs:0 xdcrDevNsServerPort:0 xdcrDevPreCheckCasDriftInjectVb:-1]
      2024-06-22T17:16:34.891-05:00 INFO GOXDCR.BucketTopologySvc: GetMemcachedConnection serverAddr=192.168.56.2:11210, bucketName=B1
      2024-06-22T17:16:34.893-05:00 INFO GOXDCR.BucketTopologySvc: Successfully sent HELO command with userAgent=Goxdcr BucketTopologyWatcher B1. attributes={false 1 false true}
      2024-06-22T17:16:36.769-05:00 INFO GOXDCR.ResourceMgr: Resource Manager State = <nil>
      2024-06-22T17:16:36.770-05:00 INFO GOXDCR.ResourceMgr: backlogCount=0, noBacklogCount=0 extraQuota=false cpuNotMaxedCount=0 throughputDropCount=0
      2024-06-22T17:16:36.770-05:00 INFO GOXDCR.ResourceMgr: DcpPriorityMap=map[]
      ongoingReplMap=map[]
      2024-06-22T17:16:41.731-05:00 INFO GOXDCR.RemClusterSvc: remoteCluster/g0hx_khd8yJ8PH0thtdVab8kFAKLQWjhn_QL8P2DDgg= useExternal: false cachedRefNodesList in refresh: [[192.168.56.4:8091 ] [192.168.56.5:8091 ]]
      2024-06-22T17:16:41.771-05:00 INFO GOXDCR.PipelineMgr: checking pipeline spec=Id: 524b35202083f5667b7bbc95c7ded5bb/B1/B2 InternalId: Ff5p-2-B5D_NJVBi7CVcHg== SourceBucketName: B1 SourceBucketUUID: 7d95a9066c84e648ee7c07963095a42f TargetClusterUUID: 524b35202083f5667b7bbc95c7ded5bb TargetBucketName: B2 TargetBucketUUID: d8d25762bac59870d7bd7458bce7d172 Settings: map[CollectionsMgtMulti:ExplicitMapping: false Mirroring: false Migration: false OSO: true active:true backlogThreshold:50 bandwidth_limit:0 casDriftThresholdSecs:100 checkpoint_interval:60 ckptSvcCacheEnabled:true colMappingRules:map[] collectionsSkipSrcValidation:false compression_type:3 dcpEnablePurgeRollback:false delAllBackfills:false delSpecificBackfillForVb:-1 dismissEvent:-1 doc_batch_size_kb:2048 failure_restart_interval:10 filterSystemScope:true filter_exp_del:0 filter_expression: filter_expression_version:0 filter_skip_restream:false jsFunctionTimeoutMs:20000 log_level:Info manualBackfill: mergeFunctionMapping:map[] mobile:1 optimistic_replication_threshold:256 preCheckCasDriftThresholdHours:8760 preReplicateVBMasterCheck:true priority:High replicateCkptIntervalMin:20 replication_type:xmem retryOnErrExceptAuthErrMaxWaitSec:360 retryOnRemoteAuthErr:true retryOnRemoteAuthErrMaxWaitSec:360 source_nozzle_per_node:2 stats_interval:500 targetTopologyLogFrequency:1800 target_nozzle_per_node:2 worker_batch_size:500 xdcrDevBackfillReplUpdateDelayMs:0 xdcrDevBackfillRollbackTo0VB:-1 xdcrDevBackfillSendDelayMs:0 xdcrDevBucketTopologyLegacyDelay:0 xdcrDevCasDriftInjectDocKey: xdcrDevCkptMgrForceGCWaitSec:0 xdcrDevColManifestSvcDelaySec:0 xdcrDevMainRollbackTo0VB:-1 xdcrDevMainSendDelayMs:0 xdcrDevNsServerPort:0 xdcrDevPreCheckCasDriftInjectVb:-1], source bucket uuid=7d95a9066c84e648ee7c07963095a42f
      2024-06-22T17:16:41.786-05:00 INFO GOXDCR.PipelineMgr: Replication Status = map[524b35202083f5667b7bbc95c7ded5bb/B1/B2:name={524b35202083f5667b7bbc95c7ded5bb/B1/B2}, status={Pending}, errors={[]}, oldProgress={Pipeline is constructed}, progress={Pipeline is constructed}]
      2024-06-22T17:16:44.094-05:00 WARN GOXDCR.Utils: getLocalVbMaxCas took 10.146847439s
      2024-06-22T17:16:44.095-05:00 WARN GOXDCR.Utils: ExponentialBackoffExecutorWithFinishSignal for StatsMapOnVBMaxCas encountered error (write tcp 192.168.56.2:42620->192.168.56.4:11210: write: broken pipe). Sleeping 200ms
      2024-06-22T17:16:44.312-05:00 [INFO] Using plain authentication for user <ud>Administrator</ud>
      2024-06-22T17:16:44.315-05:00 INFO GOXDCR.RemClusterSvc: Successfully sent HELO command with userAgent=. attributes={false 1 false false}
      panic: assignment to entry in nil map
       
      goroutine 192599 [running]:
      github.com/couchbase/goxdcr/utils.(*Utilities).ParseMaxCasStat(0xc000585300, {0xc000f88800, 0x200, 0x200}, 0xc0013f48a0, 0x0)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/utils/utils.go:273 +0x2bc
      github.com/couchbase/goxdcr/utils.(*Utilities).GetMaxCasStatsForVBs(0xc000585300, {0xc000f88800, 0x200, 0x200}, {0x14ad1c0, 0xc000cbe000}, 0xc000f1cbe0?, 0xc00011c960)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/utils/utils.go:3285 +0x125
      github.com/couchbase/goxdcr/component.(*RemoteMemcachedComponent).getMaxCasWithRetry.func1({0xc0005852f0?, 0xc0000da0e0?})
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/component/targetConnComponent.go:362 +0x23e
      github.com/couchbase/goxdcr/utils.(*Utilities).ExponentialBackoffExecutorWithFinishSignal(0xc000585300, {0x1261cee, 0x12}, 0x0?, 0x5, 0x2, 0xc00357a2c0, {0x0, 0x0}, 0xc0000da0e0)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/utils/utils.go:2836 +0xf9
      github.com/couchbase/goxdcr/component.(*RemoteMemcachedComponent).getMaxCasWithRetry(0xc0005ce600, {0xc0014eeac8, 0x12}, {0xc000f88800, 0x200, 0x200}, 0xc0000da0e0, 0xc0013f4690, 0xc000b26370, 0xc0013f46c0, ...)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/component/targetConnComponent.go:382 +0x20c
      created by github.com/couchbase/goxdcr/component.(*RemoteMemcachedComponent).GetVbMaxCasMap in goroutine 192523
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/component/targetConnComponent.go:327 +0x136
      

      Attachments

        Activity

          People

            ayush.nayyar Ayush Nayyar
            neil.huang Neil Huang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty