<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:38 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-586] ObjectId MachineId uses network interface names instead of mac address or something more unique</title>
                <link>https://jira.mongodb.org/browse/JAVA-586</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The 3 byte hash of the machine id should be based on something more unique than the network interface names (ie. &quot;en1&quot; or &quot;eth0&quot;). &lt;/p&gt;</description>
                <environment>Affects all environments AFAIK, although I only tested on OSX 10.7.3</environment>
        <key id="40859">JAVA-586</key>
            <summary>ObjectId MachineId uses network interface names instead of mac address or something more unique</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="wes@skeweredrook.com">Wes Freeman</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jun 2012 23:42:12 +0000</created>
                <updated>Tue, 31 Mar 2015 20:10:06 +0000</updated>
                            <resolved>Tue, 25 Jun 2013 17:50:37 +0000</resolved>
                                    <version>2.7.2</version>
                                    <fixVersion>3.0.0</fixVersion>
                                    <component>Codecs</component>
                                        <votes>1</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="869525" author="jeff.yemin" created="Tue, 31 Mar 2015 20:10:06 +0000"  >&lt;p&gt;Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.&lt;/p&gt;</comment>
                            <comment id="718372" author="ivan.todoroski" created="Sat, 13 Sep 2014 15:12:37 +0000"  >&lt;p&gt;Hello Jeff,&lt;/p&gt;

&lt;p&gt;I appreciate the solution for 3.x, but that release seems a long way off (this ticket was assigned to 3.x almost 2 years ago) and besides, not everyone might be able to upgrade to 3.x immediately.&lt;/p&gt;

&lt;p&gt;Why not just use reflection in the 2.x driver to get the same functionality? You can check if the method &lt;tt&gt;getHardwareAddress()&lt;/tt&gt; exists and call it reflectively if it does, otherwise fall back on &lt;tt&gt;toString()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;That way if the 2.x driver is running inside a Java 6+ VM we get to benefit from improved uniqueness of &lt;tt&gt;ObjectId&lt;/tt&gt;, while if it&apos;s running on Java 5 it will still be backward compatible, it will just use &lt;tt&gt;toString()&lt;/tt&gt; like it does now.&lt;/p&gt;

&lt;p&gt;I realize that reflection should be avoided in general, but we&apos;re talking about a static initializer here that only gets called once on startup, so performance is not an issue, and the practical advantages in this case should outweigh the general distaste for reflection.&lt;/p&gt;</comment>
                            <comment id="348734" author="auto" created="Thu, 30 May 2013 11:41:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-609&quot; title=&quot;ObjectId equals(...) broken&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-609&quot;&gt;&lt;del&gt;JAVA-609&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-586&quot; title=&quot;ObjectId MachineId uses network interface names instead of mac address or something more unique&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-586&quot;&gt;&lt;del&gt;JAVA-586&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-749&quot; title=&quot;Make ObjectId conform to specification&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-749&quot;&gt;&lt;del&gt;JAVA-749&lt;/del&gt;&lt;/a&gt;: Major changes to ObjectId class.  The major change is that ObjectId now conforms to the spec.  Instead of representing as 3 4-byte value, it now properly uses a 4-byte timestamp, 3-byte machine identifier, 2-byte process identifier, and 3-byte counter.&lt;/p&gt;

&lt;p&gt;The logic for generating machine identifier has changed.  Since we are java 6 minimum now, using NetworkInterface.getHardwareAddress() for more uniqueness.&lt;/p&gt;

&lt;p&gt;The logic for generating process identifier has changed.  It attempts to get the actual numeric process id from JMX, falling back to a string hash only if if it can&apos;t.  It looks for a pattern in the process name of &amp;lt;process_id&amp;gt;@&amp;lt;host_name&amp;gt;.  No longer using the classloader hash either, since each class loader will have a separate instance of NEXT_COUNTER, which is seeded with a random number and so is very unlikely to clash.&lt;/p&gt;

&lt;p&gt;Removed a bunch of stuff&lt;/p&gt;

&lt;p&gt; Removed support for &apos;babble&apos; format.&lt;br/&gt;
 Removed constructors that didn&apos;t conform to the spec (machine identifier only, instead of machine identifer and process identifier)&lt;br/&gt;
 Removed support for isNew/notNew.  I don&apos;t see a need for this.  It was only used in save method, and it seems the only purpose is to decide whether to do an insert of an upsert.  I don&apos;t see any harm in always doing an upsert.  This also has&lt;br/&gt;
 the nice property of making ObjectId immutable.&lt;br/&gt;
 Removed a bunch of poorly named methods: _flip(int), _inc(), _machine(), _time()&lt;br/&gt;
 Removed massageToObjectId(java.lang.Object)&apos; factory method&lt;/p&gt;

&lt;p&gt; Other non-backwards compatible changes:&lt;/p&gt;

&lt;p&gt;  equals method will no longer compare equal to anything but an ObjectId&lt;/p&gt;

&lt;p&gt; Additionally, added getters that conform to the spec: timestamp, machineIdentifier, processIdentifier, and counter.  Deprecated the old ones.&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/aa4b4355c808e045ce00cc1dfbdd0bf78fb6901a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/aa4b4355c808e045ce00cc1dfbdd0bf78fb6901a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="227331" author="jeff.yemin" created="Sun, 30 Dec 2012 17:33:14 +0000"  >&lt;p&gt;Moving to 3.0, where we can consider abandoning Java 5.  &lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/76&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/76&lt;/a&gt; for an implementation which uses a method added in Java 6.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhb2n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14594</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>