whatyouhide / xandra

Fast, simple, and robust Cassandra/ScyllaDB driver for Elixir.
ISC License
396 stars 54 forks source link

Unexpected message in the process that checks out connections #338

Closed harunzengin closed 11 months ago

harunzengin commented 11 months ago

While checking out a connection, we get unexpected messages from the process that calls Xandra.Cluster.checkout:

Worker #PID<0.2448.0> received unexpected message in handle_info/2: 
{#Reference<0.975177257.2561409025.239501>,
  {:ok,
   [
     {#PID<0.2428.0>,
      %Xandra.Cluster.Host{
        address: {172, 1, 1, 137},
        port: 9042,
        data_center: "dc",
        host_id: "311f4b83-096d-41d7-ad0d-7739d163bf3f",
        rack: "dc",
        release_version: "4.0.10",
        schema_version: "d164e19b-d363-3b9a-aca9-ad045c41e7f1",
        tokens: MapSet.new(["6244429501309744274", "-886179347303046929",
         "-7534307074587306721", "4491878296396773342", "-4116249577726632861",
         "6626891987201168929", "2988778443774597298", "6886767915708614402",
         "-6188418466193210336", "658005418767618275", "-2944821881713735629",
         "-431963843103777773", "178459821345100178", "8504334420498021302",
         "-4257211931640916658", "4659584074886253927", "3140847207035245115",
         "-3777470678315825683", "-7298480752691538611", "-8174251081519110858",
         "-51155346371085722", "2102126044132927562", "8931592527675568134",
         "-665083401151263154", "7778197716381223942", "-1771788121513160582",
         "3459377202463551525", "-4648961581679070755", "-2262561959685426629",
         "8361060785597159091", "-7426796553390216081", "9152427337098538922",
         "-5780572674090269303", "2846628822221973968", "3298965480223563648",
         ...])
      }},
     {#PID<0.2443.0>,
      %Xandra.Cluster.Host{
        address: {172, 1, 1, 60},
        port: 9042,
        data_center: "dc",
        host_id: "e6ecae23-a887-40b2-a2d8-1112b952f936",
        rack: "dc",
        release_version: "4.0.10",
        schema_version: "d164e19b-d363-3b9a-aca9-ad045c41e7f1",
        tokens: MapSet.new(["-5769928976157761299", "8304546964709093394",
         "6094200569667223988", "7594164234751440442", "-4376562011400642389",
         "-5529995300212691605", "4293533254590882998", "-7646089626400401422",
         "-7735431864667928001", "6159258368054120200", "3624169487783737161",
         "-2591286568584081829", "2197353210255234417", "-1810438153250259064",
         "-7527060925936791107", "4357521179656907683", "-228588918874178913",
         "9031612129402635766", "2261243128482189846", "-1078024437216843873",
         "6224739789143176677", "-8850971700228505209", "-9008672571316065295",
         "-4765303580733569496", "-3472914056528684934", "-1981349178354025671",
         "1831157687822665825", "6803071884462900751", "8897103415999722224",
         "4757464897782137817", "-2915077905074288242", "-4920040070194488776",
         "-5682407488091943122", "4544220667548151547", ...])
      }}
   ]}}