Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-04-11 Thread Luciano Greiner
Hey Paul

Thanks for your help before. I rolled storage_compatibility_mode to
UPGRADING and have been upgrading sstables one node at a time for a
few days. That works.

Just one question: Is it safe to make any schema changes while I am
still doing this? All my nodes are yet running version 5, although
some are still using nb-* sstables.

Thanks

Luciano Greiner

On Tue, Mar 18, 2025 at 12:26 PM Luciano Greiner
 wrote:
>
> Amazing!
>
> So this is not a big deal having nodes running on mixed versions of
> sstables for a while.
>
> Thank you !
>
> Luciano Greiner
>
> On Tue, Mar 18, 2025 at 12:09 PM Paul Chandler  wrote:
> >
> > Hi Luciano,
> >
> > It is not a must, as, after the node is upgraded all the new sstables will 
> > be created as oa sstables. Then old nb sstables will get compacted away 
> > eventually, but this eventually could be a long time in the future.
> >
> > So I would recommend running the sstable upgrade, even if you wait to 
> > schedule it during a time of lower load on the system.
> >
> > Regards
> >
> > Paul
> >
> > Sent from my iPhone
> >
> > > On 18 Mar 2025, at 18:47, Luciano Greiner  
> > > wrote:
> > >
> > > One thing I am not really sure is if upgrading sstables is really a
> > > must after the Cassandra 5 upgrade.
> > >
> > > Thanks
> > >
> > > Luciano Greiner
> > >
> > >
> > >> On Sun, Mar 16, 2025 at 2:33 PM Paul Chandler  wrote:
> > >>
> > >> Yes, that should sort it out.
> > >>
> > >> Regards
> > >>
> > >> Paul
> > >> Sent from my iPhone
> > >>
> >  On 16 Mar 2025, at 18:34, Luciano Greiner  
> >  wrote:
> > >>>
> > >>> Thank you Paul!
> > >>>
> > >>> So should I restart the nodes with UPGRADING mode and run the
> > >>> upgradesstables again?
> > >>>
> > >>> Thank you!
> > >>>
> > >>> Luciano Greiner
> > >>> (54) 996309845
> > >>>
> >  On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler  
> >  wrote:
> > 
> >  Hi Luciano,
> > 
> >  It sounds like you could have the storage_compatibility_mode set to 
> >  the default CASSANDRA_4 value, check this and change it to UPGRADING 
> >  or NONE.
> > 
> >  Full details can be found in the Cassandra.yaml 
> >  https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
> > 
> >  Regards
> > 
> >  Paul
> > 
> >  Sent from my iPhone
> > 
> >  On 16 Mar 2025, at 07:48, Luciano Greiner  
> >  wrote:
> > 
> >  Hi,
> > 
> >  We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
> >  trying to migrate SSTable files to the new oa-* format, but it’s not
> >  working as I expected.
> > 
> >  What I Tried:
> > 
> >  nodetool flush + upgradesstables → Completed quickly with success
> >  messages, but no SSTables were rewritten.
> >  nodetool upgradesstables -a → Triggered compactions, but new SSTables
> >  are still in the old nb-* format.
> > 
> >  What’s the recommended approach to ensure SSTables migrate to oa-*? Is
> >  it really necessary?
> > 
> >  Thanks!
> > 
> >  Luciano
> > >>
> >


Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-18 Thread Paul Chandler
Hi Luciano,

It is not a must, as, after the node is upgraded all the new sstables will be 
created as oa sstables. Then old nb sstables will get compacted away 
eventually, but this eventually could be a long time in the future.

So I would recommend running the sstable upgrade, even if you wait to schedule 
it during a time of lower load on the system.

Regards 

Paul 

Sent from my iPhone

> On 18 Mar 2025, at 18:47, Luciano Greiner  wrote:
> 
> One thing I am not really sure is if upgrading sstables is really a
> must after the Cassandra 5 upgrade.
> 
> Thanks
> 
> Luciano Greiner
> 
> 
>> On Sun, Mar 16, 2025 at 2:33 PM Paul Chandler  wrote:
>> 
>> Yes, that should sort it out.
>> 
>> Regards
>> 
>> Paul
>> Sent from my iPhone
>> 
 On 16 Mar 2025, at 18:34, Luciano Greiner  
 wrote:
>>> 
>>> Thank you Paul!
>>> 
>>> So should I restart the nodes with UPGRADING mode and run the
>>> upgradesstables again?
>>> 
>>> Thank you!
>>> 
>>> Luciano Greiner
>>> (54) 996309845
>>> 
 On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler  wrote:
 
 Hi Luciano,
 
 It sounds like you could have the storage_compatibility_mode set to the 
 default CASSANDRA_4 value, check this and change it to UPGRADING or NONE.
 
 Full details can be found in the Cassandra.yaml 
 https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
 
 Regards
 
 Paul
 
 Sent from my iPhone
 
 On 16 Mar 2025, at 07:48, Luciano Greiner  
 wrote:
 
 Hi,
 
 We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
 trying to migrate SSTable files to the new oa-* format, but it’s not
 working as I expected.
 
 What I Tried:
 
 nodetool flush + upgradesstables → Completed quickly with success
 messages, but no SSTables were rewritten.
 nodetool upgradesstables -a → Triggered compactions, but new SSTables
 are still in the old nb-* format.
 
 What’s the recommended approach to ensure SSTables migrate to oa-*? Is
 it really necessary?
 
 Thanks!
 
 Luciano
>> 



Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-18 Thread Luciano Greiner
Amazing!

So this is not a big deal having nodes running on mixed versions of
sstables for a while.

Thank you !

Luciano Greiner

On Tue, Mar 18, 2025 at 12:09 PM Paul Chandler  wrote:
>
> Hi Luciano,
>
> It is not a must, as, after the node is upgraded all the new sstables will be 
> created as oa sstables. Then old nb sstables will get compacted away 
> eventually, but this eventually could be a long time in the future.
>
> So I would recommend running the sstable upgrade, even if you wait to 
> schedule it during a time of lower load on the system.
>
> Regards
>
> Paul
>
> Sent from my iPhone
>
> > On 18 Mar 2025, at 18:47, Luciano Greiner  wrote:
> >
> > One thing I am not really sure is if upgrading sstables is really a
> > must after the Cassandra 5 upgrade.
> >
> > Thanks
> >
> > Luciano Greiner
> >
> >
> >> On Sun, Mar 16, 2025 at 2:33 PM Paul Chandler  wrote:
> >>
> >> Yes, that should sort it out.
> >>
> >> Regards
> >>
> >> Paul
> >> Sent from my iPhone
> >>
>  On 16 Mar 2025, at 18:34, Luciano Greiner  
>  wrote:
> >>>
> >>> Thank you Paul!
> >>>
> >>> So should I restart the nodes with UPGRADING mode and run the
> >>> upgradesstables again?
> >>>
> >>> Thank you!
> >>>
> >>> Luciano Greiner
> >>> (54) 996309845
> >>>
>  On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler  wrote:
> 
>  Hi Luciano,
> 
>  It sounds like you could have the storage_compatibility_mode set to the 
>  default CASSANDRA_4 value, check this and change it to UPGRADING or NONE.
> 
>  Full details can be found in the Cassandra.yaml 
>  https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
> 
>  Regards
> 
>  Paul
> 
>  Sent from my iPhone
> 
>  On 16 Mar 2025, at 07:48, Luciano Greiner  
>  wrote:
> 
>  Hi,
> 
>  We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
>  trying to migrate SSTable files to the new oa-* format, but it’s not
>  working as I expected.
> 
>  What I Tried:
> 
>  nodetool flush + upgradesstables → Completed quickly with success
>  messages, but no SSTables were rewritten.
>  nodetool upgradesstables -a → Triggered compactions, but new SSTables
>  are still in the old nb-* format.
> 
>  What’s the recommended approach to ensure SSTables migrate to oa-*? Is
>  it really necessary?
> 
>  Thanks!
> 
>  Luciano
> >>
>


Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-18 Thread Luciano Greiner
One thing I am not really sure is if upgrading sstables is really a
must after the Cassandra 5 upgrade.

Thanks

Luciano Greiner


On Sun, Mar 16, 2025 at 2:33 PM Paul Chandler  wrote:
>
> Yes, that should sort it out.
>
> Regards
>
> Paul
> Sent from my iPhone
>
> > On 16 Mar 2025, at 18:34, Luciano Greiner  wrote:
> >
> > Thank you Paul!
> >
> > So should I restart the nodes with UPGRADING mode and run the
> > upgradesstables again?
> >
> > Thank you!
> >
> > Luciano Greiner
> > (54) 996309845
> >
> >> On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler  wrote:
> >>
> >> Hi Luciano,
> >>
> >> It sounds like you could have the storage_compatibility_mode set to the 
> >> default CASSANDRA_4 value, check this and change it to UPGRADING or NONE.
> >>
> >> Full details can be found in the Cassandra.yaml 
> >> https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
> >>
> >> Regards
> >>
> >> Paul
> >>
> >> Sent from my iPhone
> >>
> >> On 16 Mar 2025, at 07:48, Luciano Greiner  
> >> wrote:
> >>
> >> Hi,
> >>
> >> We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
> >> trying to migrate SSTable files to the new oa-* format, but it’s not
> >> working as I expected.
> >>
> >> What I Tried:
> >>
> >> nodetool flush + upgradesstables → Completed quickly with success
> >> messages, but no SSTables were rewritten.
> >> nodetool upgradesstables -a → Triggered compactions, but new SSTables
> >> are still in the old nb-* format.
> >>
> >> What’s the recommended approach to ensure SSTables migrate to oa-*? Is
> >> it really necessary?
> >>
> >> Thanks!
> >>
> >> Luciano
>


Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-16 Thread edi mari
Great ,Thanks Scott .

בתאריך יום א׳, 16 במרץ 2025, 21:40, מאת C. Scott Andreas ‏<
[email protected]>:

> Hi Edi,
>
> Details are in NEWS.txt:
> https://github.com/apache/cassandra/blob/cassandra-5.0/NEWS.txt
>
> – Scott
>
> On Mar 16, 2025, at 11:37 AM, edi mari  wrote:
>
> 
>
> Sorry for jumping into the conversation, but I wanted to ask— is there an
> guide for upgrading Cassandra from v4 to v5?
>
> Edi
>
> בתאריך יום א׳, 16 במרץ 2025, 19:33, מאת Paul Chandler ‏ >:
>
>> Yes, that should sort it out.
>>
>> Regards
>>
>> Paul
>> Sent from my iPhone
>>
>> > On 16 Mar 2025, at 18:34, Luciano Greiner 
>> wrote:
>> >
>> > Thank you Paul!
>> >
>> > So should I restart the nodes with UPGRADING mode and run the
>> > upgradesstables again?
>> >
>> > Thank you!
>> >
>> > Luciano Greiner
>> > (54) 996309845
>> >
>> >> On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler 
>> wrote:
>> >>
>> >> Hi Luciano,
>> >>
>> >> It sounds like you could have the storage_compatibility_mode set to
>> the default CASSANDRA_4 value, check this and change it to UPGRADING or
>> NONE.
>> >>
>> >> Full details can be found in the Cassandra.yaml
>> https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
>> >>
>> >> Regards
>> >>
>> >> Paul
>> >>
>> >> Sent from my iPhone
>> >>
>> >> On 16 Mar 2025, at 07:48, Luciano Greiner 
>> wrote:
>> >>
>> >> Hi,
>> >>
>> >> We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
>> >> trying to migrate SSTable files to the new oa-* format, but it’s not
>> >> working as I expected.
>> >>
>> >> What I Tried:
>> >>
>> >> nodetool flush + upgradesstables → Completed quickly with success
>> >> messages, but no SSTables were rewritten.
>> >> nodetool upgradesstables -a → Triggered compactions, but new SSTables
>> >> are still in the old nb-* format.
>> >>
>> >> What’s the recommended approach to ensure SSTables migrate to oa-*? Is
>> >> it really necessary?
>> >>
>> >> Thanks!
>> >>
>> >> Luciano
>>
>>


Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-16 Thread C. Scott Andreas
Hi Edi,Details are in NEWS.txt: https://github.com/apache/cassandra/blob/cassandra-5.0/NEWS.txt– ScottOn Mar 16, 2025, at 11:37 AM, edi mari  wrote:Sorry for jumping into the conversation, but I wanted to ask— is there an guide for upgrading Cassandra from v4 to v5?
Edi
בתאריך יום א׳, 16 במרץ 2025, 19:33, מאת Paul Chandler ‏:Yes, that should sort it out.

Regards 

Paul
Sent from my iPhone

> On 16 Mar 2025, at 18:34, Luciano Greiner  wrote:
> 
> Thank you Paul!
> 
> So should I restart the nodes with UPGRADING mode and run the
> upgradesstables again?
> 
> Thank you!
> 
> Luciano Greiner
> (54) 996309845
> 
>> On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler  wrote:
>> 
>> Hi Luciano,
>> 
>> It sounds like you could have the storage_compatibility_mode set to the default CASSANDRA_4 value, check this and change it to UPGRADING or NONE.
>> 
>> Full details can be found in the Cassandra.yaml https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
>> 
>> Regards
>> 
>> Paul
>> 
>> Sent from my iPhone
>> 
>> On 16 Mar 2025, at 07:48, Luciano Greiner  wrote:
>> 
>> Hi,
>> 
>> We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
>> trying to migrate SSTable files to the new oa-* format, but it’s not
>> working as I expected.
>> 
>> What I Tried:
>> 
>> nodetool flush + upgradesstables → Completed quickly with success
>> messages, but no SSTables were rewritten.
>> nodetool upgradesstables -a → Triggered compactions, but new SSTables
>> are still in the old nb-* format.
>> 
>> What’s the recommended approach to ensure SSTables migrate to oa-*? Is
>> it really necessary?
>> 
>> Thanks!
>> 
>> Luciano




Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-16 Thread edi mari
Sorry for jumping into the conversation, but I wanted to ask— is there an
guide for upgrading Cassandra from v4 to v5?

Edi

בתאריך יום א׳, 16 במרץ 2025, 19:33, מאת Paul Chandler ‏:

> Yes, that should sort it out.
>
> Regards
>
> Paul
> Sent from my iPhone
>
> > On 16 Mar 2025, at 18:34, Luciano Greiner 
> wrote:
> >
> > Thank you Paul!
> >
> > So should I restart the nodes with UPGRADING mode and run the
> > upgradesstables again?
> >
> > Thank you!
> >
> > Luciano Greiner
> > (54) 996309845
> >
> >> On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler 
> wrote:
> >>
> >> Hi Luciano,
> >>
> >> It sounds like you could have the storage_compatibility_mode set to the
> default CASSANDRA_4 value, check this and change it to UPGRADING or NONE.
> >>
> >> Full details can be found in the Cassandra.yaml
> https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
> >>
> >> Regards
> >>
> >> Paul
> >>
> >> Sent from my iPhone
> >>
> >> On 16 Mar 2025, at 07:48, Luciano Greiner 
> wrote:
> >>
> >> Hi,
> >>
> >> We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
> >> trying to migrate SSTable files to the new oa-* format, but it’s not
> >> working as I expected.
> >>
> >> What I Tried:
> >>
> >> nodetool flush + upgradesstables → Completed quickly with success
> >> messages, but no SSTables were rewritten.
> >> nodetool upgradesstables -a → Triggered compactions, but new SSTables
> >> are still in the old nb-* format.
> >>
> >> What’s the recommended approach to ensure SSTables migrate to oa-*? Is
> >> it really necessary?
> >>
> >> Thanks!
> >>
> >> Luciano
>
>


Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-16 Thread Paul Chandler
Yes, that should sort it out.

Regards 

Paul
Sent from my iPhone

> On 16 Mar 2025, at 18:34, Luciano Greiner  wrote:
> 
> Thank you Paul!
> 
> So should I restart the nodes with UPGRADING mode and run the
> upgradesstables again?
> 
> Thank you!
> 
> Luciano Greiner
> (54) 996309845
> 
>> On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler  wrote:
>> 
>> Hi Luciano,
>> 
>> It sounds like you could have the storage_compatibility_mode set to the 
>> default CASSANDRA_4 value, check this and change it to UPGRADING or NONE.
>> 
>> Full details can be found in the Cassandra.yaml 
>> https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
>> 
>> Regards
>> 
>> Paul
>> 
>> Sent from my iPhone
>> 
>> On 16 Mar 2025, at 07:48, Luciano Greiner  wrote:
>> 
>> Hi,
>> 
>> We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
>> trying to migrate SSTable files to the new oa-* format, but it’s not
>> working as I expected.
>> 
>> What I Tried:
>> 
>> nodetool flush + upgradesstables → Completed quickly with success
>> messages, but no SSTables were rewritten.
>> nodetool upgradesstables -a → Triggered compactions, but new SSTables
>> are still in the old nb-* format.
>> 
>> What’s the recommended approach to ensure SSTables migrate to oa-*? Is
>> it really necessary?
>> 
>> Thanks!
>> 
>> Luciano



Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-16 Thread Luciano Greiner
Thank you Paul!

So should I restart the nodes with UPGRADING mode and run the
upgradesstables again?

Thank you!

Luciano Greiner
(54) 996309845

On Sun, Mar 16, 2025 at 2:58 AM Paul Chandler  wrote:
>
> Hi Luciano,
>
> It sounds like you could have the storage_compatibility_mode set to the 
> default CASSANDRA_4 value, check this and change it to UPGRADING or NONE.
>
> Full details can be found in the Cassandra.yaml 
> https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode
>
> Regards
>
> Paul
>
> Sent from my iPhone
>
> On 16 Mar 2025, at 07:48, Luciano Greiner  wrote:
>
> Hi,
>
> We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
> trying to migrate SSTable files to the new oa-* format, but it’s not
> working as I expected.
>
> What I Tried:
>
> nodetool flush + upgradesstables → Completed quickly with success
> messages, but no SSTables were rewritten.
> nodetool upgradesstables -a → Triggered compactions, but new SSTables
> are still in the old nb-* format.
>
> What’s the recommended approach to ensure SSTables migrate to oa-*? Is
> it really necessary?
>
> Thanks!
>
> Luciano


Re: SSTable Migration to oa-* Format After Upgrade to 5

2025-03-15 Thread Paul Chandler
Hi Luciano,

It sounds like you could have the storage_compatibility_mode set to the default 
CASSANDRA_4 value, check this and change it to UPGRADING or NONE.

Full details can be found in the Cassandra.yaml 
https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#storage_compatibility_mode

Regards

Paul

Sent from my iPhone

> On 16 Mar 2025, at 07:48, Luciano Greiner  wrote:
> 
> Hi,
> 
> We recently upgraded our clusters from 4.1.5 to 5.0.3 and now I’m
> trying to migrate SSTable files to the new oa-* format, but it’s not
> working as I expected.
> 
> What I Tried:
> 
> nodetool flush + upgradesstables → Completed quickly with success
> messages, but no SSTables were rewritten.
> nodetool upgradesstables -a → Triggered compactions, but new SSTables
> are still in the old nb-* format.
> 
> What’s the recommended approach to ensure SSTables migrate to oa-*? Is
> it really necessary?
> 
> Thanks!
> 
> Luciano